﻿/* ===== 柔和的主题颜色 ===== */
:root {
    --primary: #FFB74D; /* 柔和的琥珀色 */
    --primary-light: #FFE0B2; /* 浅琥珀色 */
    --primary-dark: #FF9800; /* 深琥珀色 */
    --primary-gradient: linear-gradient(135deg, #FFB74D 0%, #FFCC80 100%);
    --wechat: #4CAF50; /* 柔和的微信绿 */
    --text: #333333; /* 主文本色 */
    --text-light: #666666; /* 浅文本色 */
    --text-lighter: #999999; /* 更浅文本色 */
    --bg: #e9ecef; /* 背景色调整为更深的色调，增加对比度 */
    --card-bg: #ffffff; /* 卡片背景 */
    --border: #e0e0e0; /* 边框色 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== 基础样式 ===== */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== 简化背景装饰 ===== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.08; /* 降低背景装饰透明度 */
}

.bg-circle-1 {
    width: 800px;
    height: 800px;
    top: -400px;
    right: -400px;
}

/* ===== 卡片样式 ===== */
.login-card {
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    background: var(--primary-gradient);
    padding: 30px 20px;
    border: none;
    text-align: center;
    color: white;
}

.card-body {
    padding: 30px;
}

/* ===== 标志样式 ===== */
.login-logo {
    font-size: 3rem;
    color: white;
}

/* ===== 表单样式 ===== */
.input-group {
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

    .input-group:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(255, 183, 77, 0.25);
    }

.input-group-text {
    background: #f8f9fa;
    border: none;
    color: var(--text-light);
    padding: 0 18px;
}

.form-control {
    border: none;
    padding: 14px 18px;
    font-size: 0.875rem; /* 进一步减小输入框字体大小 */
    height: auto;
    box-shadow: none;
    background: white;
}

    .form-control:focus {
        box-shadow: none;
        background: white;
    }

    /* 修复 placeholder 字体大小 */
    .form-control::placeholder {
        font-size: 0.875rem; /* 与输入文本相同大小 */
        color: var(--text-lighter);
    }

.form-control-lg {
    padding: 14px 18px;
}

/* ===== 按钮样式 ===== */
.login-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .login-btn:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #FFB74D 100%);
    }

.wechat-btn {
    background: var(--wechat);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .wechat-btn:hover {
        background: #43A047;
        color: white;
    }

/* ===== 其他元素 ===== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border);
    }

    .divider::before {
        margin-right: 15px;
    }

    .divider::after {
        margin-left: 15px;
    }

.password-toggle {
    background: transparent !important;
    border: none !important; /* 移除边框 */
    color: var(--text-lighter);
    cursor: pointer;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.alert-danger {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    color: #dc3545;
    padding: 12px 18px;
}

/* ===== 验证码按钮样式统一 ===== */
.send-code-btn {
    background: #f8f9fa;
    border-left: 1px solid var(--border) !important; /* 修复左边框问题 */
    color: var(--primary);
    font-weight: 500;
    transition: background 0.2s ease;
    min-width: 120px;
    border: none;
}

    .send-code-btn:hover {
        background: var(--primary-light);
    }

    .send-code-btn:disabled {
        color: var(--text-lighter);
        background: #f8f9fa;
    }

/* ===== 统一版权声明样式 ===== */
.copyright {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 20px;
    text-align: center;
    width: 100%; /* 确保宽度100% */
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background-color: #e9ecef;
    overflow: hidden;
    position: relative;
}

.strength-indicator {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background-color: #dc3545;
    width: 33%;
}

.strength-medium {
    background-color: #ffc107;
    width: 66%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .login-card {
        border-radius: 14px;
    }

    .card-header {
        padding: 25px 15px;
    }

    .card-body {
        padding: 25px 20px;
    }

    .login-logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-card {
        border-radius: 12px;
    }

    .card-header {
        padding: 20px 15px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .form-control,
    .form-control::placeholder {
        font-size: 0.8125rem; /* 移动端更小字体 */
    }
}
