/**
 * 登录页面现代化样式
 * 基于demo/styles.css设计
 */

/* 全局重置 */
.login-page-modern * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page-modern {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('../../../upload/image/20250113/bg.jpg') center/cover no-repeat fixed;
}

/* 登录容器 */
.login-container-modern {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* 左侧背景区域 */
.login-bg-modern {
    flex: 2;
    /* background: url('../../../upload/image/20250113/bg.jpg') center/cover; */
    /* position: relative; */
    /* overflow: hidden; */
}

.login-bg-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.bg-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bg-content-modern {
    text-align: center;
    color: white;
    max-width: 500px;
}

.bg-content-modern h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-content-modern p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.features-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item-modern i {
    font-size: 1.5rem;
    color: #ffd700;
}

.feature-item-modern span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 右侧登录区域 */
.login-form-modern {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container-modern {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-modern {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-modern img {
    max-width: 100px;
    margin-bottom: 1rem;
}

.logo-modern i {
    font-size: 3.5rem;
    color: #14c1f5;
    margin-bottom: 1rem;
    display: block;
}

.logo-modern h2 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 表单组 */
.form-group-modern {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group-modern label i {
    display: none;
}

.form-group-modern input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.form-group-modern input:hover {
    border-color: #cbd5e0;
    background: #ffffff;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #14c1f5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 193, 245, 0.1);
}

.form-group-modern input::placeholder {
    color: #a0aec0;
}

/* 输入框图标 */
.form-group-modern::before {
    /* content: '\f007'; */
    font-family: 'FontAwesome';
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    color: #a0aec0;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.form-group-modern:has(input[type="password"])::before {
    /* content: '\f023'; */
}

.form-group-modern:has(input[type="email"])::before {
    content: '\f0e0';
}

.form-group-modern:has(input[name="verify"])::before {
    content: '\f132';
}

.form-group-modern:has(input[name="phone"])::before {
    content: '\f095';
}

.form-group-modern:has(input:focus)::before {
    color: #14c1f5;
}

/* 表单选项 */
.form-options-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #4a5568;
    font-weight: 500;
}

.checkbox-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #14c1f5;
}

.forgot-password-modern {
    color: #14c1f5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password-modern:hover {
    color: #0ea5d9;
    text-decoration: none;
}

/* 登录按钮 */
.login-btn-modern {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #14c1f5 0%, #0ea5d9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(20, 193, 245, 0.3);
}

.login-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 193, 245, 0.4);
    background: linear-gradient(135deg, #0ea5d9 0%, #0891b2 100%);
}

.login-btn-modern:active {
    transform: translateY(0);
}

/* 分隔线 */
.divider-modern {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider-modern span {
    background: white;
    padding: 0 1rem;
    color: #a0aec0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* 社交登录 */
.social-login-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn-modern {
    flex: 1;
    padding: 0.9rem;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
}

.social-btn-modern:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-btn-modern.wechat:hover {
    border-color: #07c160;
    color: #07c160;
    background: rgba(7, 193, 96, 0.05);
}

.social-btn-modern.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
    background: rgba(18, 183, 245, 0.05);
}

.social-btn-modern i {
    font-size: 1.2rem;
}

/* 注册链接 */
.register-link-modern {
    text-align: center;
    font-size: 0.95rem;
    color: #718096;
}

.register-link-modern a {
    color: #14c1f5;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.register-link-modern a:hover {
    color: #0ea5d9;
    text-decoration: none;
}

/* 验证码区域 */
.login-verify-modern {
    margin-bottom: 1.75rem;
}

.login-verify-modern .am-alert {
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    padding: 1rem;
}

.login-verify-modern img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-verify-modern img:hover {
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container-modern {
        flex-direction: column;
    }

    .login-bg-modern {
        flex: none;
        height: 35vh;
        min-height: 250px;
    }

    .bg-content-modern h1 {
        font-size: 1.75rem;
    }

    .bg-content-modern p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .features-modern {
        gap: 0.75rem;
    }

    .feature-item-modern {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .feature-item-modern i {
        font-size: 1.2rem;
    }

    .login-form-modern {
        padding: 1.5rem 1rem;
        min-height: 65vh;
    }

    .form-container-modern {
        padding: 2rem 1.5rem;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.98);
    }

    .logo-modern h2 {
        font-size: 1.5rem;
    }

    .logo-modern i {
        font-size: 2.5rem;
    }

    .form-group-modern input {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }

    .form-group-modern::before {
        left: 1rem;
        bottom: 1rem;
        font-size: 0.95rem;
    }

    .login-btn-modern {
        padding: 1rem;
        font-size: 1rem;
    }

    .social-login-modern {
        flex-direction: column;
    }

    .social-btn-modern {
        width: 100%;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .login-bg-modern {
        height: 30vh;
        min-height: 200px;
    }

    .bg-content-modern h1 {
        font-size: 1.5rem;
    }

    .features-modern {
        display: none;
    }

    .form-container-modern {
        padding: 1.75rem 1.25rem;
    }

    .logo-modern {
        margin-bottom: 2rem;
    }

    .form-group-modern {
        margin-bottom: 1.5rem;
    }
}
