@charset "utf-8";

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* 科技感背景动画 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* 几何装饰元素 */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.geometric-bg::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 10%;
    right: 15%;
    animation: rotate 30s linear infinite;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    bottom: 20%;
    left: 10%;
    animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 主容器 */
#main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* 登录卡片容器 */
.login-container {
    display: flex;
    width: 900px;
    max-width: 90vw;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左侧信息区域 */
.login-info {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    position: relative;
}

/* 左侧品牌标识 */
.login-info .brand {
    margin-bottom: 30px;
}

.login-info .brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.login-info::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 20px;
    right: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.login-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 300;
}

.login-info p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
}

/* 右侧登录表单区域 */
.login-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* 登录切角样式 - 按照原始设计 */
.login-form .cut-login-type {
    cursor: pointer;
    height: 60px;
    position: absolute;
    z-index: 999;
    right: 0px;
    top: 0px;
    width: 60px;
    background-image: url(../images/login_cut_new.svg);
    background-position: 0 0;
    background-size: 120px;
}

.login-form .cut-login-type:hover {
    background-position: -60px 0;
}

.login-form .cut-login-type.scan {
    background-position: 0rem -60px;
}

.login-form .cut-login-type.scan:hover {
    background-position: -60px -60px;
}

.login-form .cut-login-type .tips-text {
    font-size: 12px;
}

.login-form .cut-login-type .tips {
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    position: absolute;
    top: 10px;
    right: 56px;
    text-align: center;
    color: #667eea;
    width: 112px;
    animation: rock 1s 0s ease-in-out infinite;
}

.login-form .cut-login-type .tips>span:nth-child(1) {
    background-repeat: no-repeat;
    display: inline-block;
    height: 14px;
    margin-right: 4px;
    position: relative;
    top: .5px;
    width: 14px;
    background-size: 14px;
}

.login-form .cut-login-type .tips>span.account {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNyIgY3k9IjQiIHI9IjIuNSIgZmlsbD0iIzY2N2VlYSIvPgo8cGF0aCBkPSJNIDIgMTIgUSAyIDkgNyA5IFEgMTIgOSAxMiAxMiBMIDEyIDEzIEwgMiAxMyBaIiBmaWxsPSIjNjY3ZWVhIi8+Cjwvc3ZnPgo=);
}

.login-form .cut-login-type .tips>span.scan {
    height: 1.6rem;
    top: -.5px;
    width: 1.6rem;
    background-size: 1.6rem;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMSIgeT0iMSIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0iIzY2N2VlYSIvPgo8cmVjdCB4PSIxMSIgeT0iMSIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0iIzY2N2VlYSIvPgo8cmVjdCB4PSIxIiB5PSIxMSIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0iIzY2N2VlYSIvPgo8cmVjdCB4PSI2IiB5PSI2IiB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjNjY3ZWVhIi8+CjxyZWN0IHg9IjExIiB5PSIxMSIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0iIzY2N2VlYSIvPgo8L3N2Zz4K);
}

.login-form .cut-login-type .tips:before {
    margin-left: 8px;
    position: absolute;
    top: 8px;
    right: -12px;
    content: "";
    border: 6px solid rgba(102, 126, 234, 0.1);
    border-color: transparent transparent transparent rgba(102, 126, 234, 0.1);
}

.login-form .cut-login-type.account-login {
    background-position: 0 0;
}

.login-form .cut-login-type.account-login:hover {
    background-position: -60px 0;
}

.login-form .cut-login-type.scan-code-login {
    background-position: 0 -60px;
}

.login-form .cut-login-type.scan-code-login:hover {
    background-position: -60px -60px;
}

/* 摇摆动画 */
@keyframes rock {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}



/* 隐藏切角元素 */
.login-corner.hide {
    display: none;
}

/* 登录标题 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.has-error {
    border-color: #e74c3c;
}

.form-group input.has-success {
    border-color: #27ae60;
}

/* 验证码组合 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-group img {
    height: 46px;
    width: 120px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.captcha-group img:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    background: linear-gradient(135deg, #bbb 0%, #999 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-btn:disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 提示信息 */
.tip {
    text-align: center;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 10px;
}

/* 错误信息 */
.err {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 扫码登录区域 */
.scanwxDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px 0;
}

.qr-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    height: 100%;
    text-align: center;
}

.qr-login #wxcode {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.qr-login .qr-title {
    color: #333;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.qr-login .qr-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

.qr-login .qr-tip {
    font-size: 12px;
    color: #007bff;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: underline;
}



/* 底部版权信息 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer img {
    vertical-align: middle;
    margin-right: 5px;
}

/* 隐藏类 */
.hide {
    display: none !important;
}

/* 发送验证码按钮样式 */
.send-code-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.send-code-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示信息样式 */
.tips {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95vw;
        height: auto;
        max-height: 90vh;
    }
    
    .login-info {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .login-info h1 {
        font-size: 24px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-tabs {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }
    
    .footer {
        position: static;
        margin-top: 20px;
    }
    
    .qr-login {
        padding: 20px 15px;
    }
    
    .send-code-btn {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #main {
        padding: 10px;
    }
    
    .login-container {
        width: 100vw;
        border-radius: 0;
        height: 100vh;
    }
    
    .login-info {
        min-height: 150px;
        padding: 20px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .brand h2 {
        font-size: 20px;
    }
}