/* 登录/注册页基础样式 */
.login-page {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

/* 登录容器 */
.login-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    color: #ff8c00;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.login-header p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    background-color: #2f2f2f;
}

/* 验证码输入行 */
.verification-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end; /* 保证按钮和输入框底部对齐 */
}

.verification-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 验证码按钮 - 多端适配优化 */
.verification-btn {
    /* PC端优化：缩小尺寸，匹配输入框高度 */
    width: 110px;
    padding: 0 0.8rem;
    height: 44px; /* 匹配输入框高度，视觉统一 */
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem; /* 缩小字体 */
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮被挤压变形 */
}

.verification-btn:hover {
    background-color: #e07a00;
}

.verification-btn:disabled {
    background-color: #555555;
    cursor: not-allowed;
    opacity: 0.8; /* 禁用状态视觉反馈 */
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* 错误提示 */
.error-message {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #555555;
    font-size: 0.9rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #3a3a3a;
}

.divider span {
    padding: 0 1rem;
}

/* 其他登录方式 */
.other-login {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2a2a2a;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

/* 切换链接 */
.switch-mode, .register-link, .login-link {
    text-align: center;
    color: #cccccc;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.switch-mode a, .register-link a, .login-link a {
    color: #ff8c00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch-mode a:hover, .register-link a:hover, .login-link a:hover {
    color: #ff4500;
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

/* 响应式适配 */
@media (max-width: 767px) {
    .login-page {
        padding: 1rem 0;
    }

    .login-container {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }

    .verification-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .verification-btn {
        /* 移动端恢复全屏宽度和足够触控高度 */
        width: 100%;
        height: 48px;
        padding: 1rem;
        font-size: 1rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 平板适配 */
@media (min-width: 768px) and (max-width: 991px) {
    .login-container {
        margin: 0 2rem;
    }

    .verification-btn {
        width: 105px;
        height: 42px;
        font-size: 0.85rem;
    }
}