/* 登录页面样式 - 苹果风格 (黑色主调 + 深紫色点缀) */

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.btn-nav-signup {
    padding: 8px 20px;
    background: linear-gradient(135deg, #9333EA, #6B21A8);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

/* 主容器 */
.login-container {
    min-height: 100vh;
    display: flex;
    background: #000000;
    padding-top: 80px;
}

/* 左侧信息栏 */
.login-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-image: url('../assets/images/backgrounds/login-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.login-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) translate(10%, 10%);
        opacity: 0.8;
    }
}

.info-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.info-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.info-content > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9333EA, #6B21A8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* 右侧表单区域 */
.login-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: #0a0a0a;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.login-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 16px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: #9333EA;
    background: rgba(147, 51, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-group small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: -5px;
}

/* 表单选项行 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #9333EA;
}

.forgot-link {
    color: #9333EA;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #A855F7;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #9333EA, #6B21A8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, #A855F7, #7C2D9E);
}

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

/* 分割线 */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    padding: 0 15px;
    background: rgba(26, 26, 26, 0.6);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* 注册提示 */
.register-prompt {
    text-align: center;
}

.register-prompt p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.register-prompt a {
    color: #9333EA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-prompt a:hover {
    color: #A855F7;
    text-decoration: underline;
}

/* 页脚 */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .login-info {
        display: none;
    }
    
    .login-form-wrapper {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 15px 30px;
    }
    
    .login-container {
        padding-top: 70px;
    }
    
    .login-form-wrapper {
        padding: 40px 20px;
    }
    
    .login-box {
        padding: 40px 30px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .info-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 35px 25px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .form-group input {
        padding: 14px 16px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* 登录方式Tab切换 */
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 验证码输入组 */
.code-group {
    margin-bottom: 20px;
}

.code-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-input-wrapper input {
    flex: 1;
}

.send-code-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 120px;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 忘记密码对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.forgot-password-dialog {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dialog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.dialog-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.dialog-content .form-group {
    margin-bottom: 20px;
}

.dialog-content .form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.dialog-content .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dialog-content .form-group input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.dialog-content .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.dialog-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #9333EA, #6B21A8);
    color: white;
    border: 1px solid transparent;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.btn-confirm:active {
    transform: translateY(0);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .dialog-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .dialog-content h2 {
        font-size: 1.5rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .dialog-buttons button {
        width: 100%;
    }
}

/* 验证码输入组 */
.verification-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

