﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --secondary-color: #34495e;
    --background-color: #f5f7fa;
    --text-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 20px;
    padding-bottom: 50px; /* 为footer留出空间 */
}

.login-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.login-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #3a7bc8;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.register-link {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--secondary-color);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #aaa;
}

.input-icon input {
    padding-left: 40px;
}

/* 在文件末尾添加以下样�?*/

.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--secondary-color);
    font-size: 0.9rem;
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.input-icon input {
    padding-left: 35px;
}
.password-strength-meter {
    height: 5px;
    background-color: #FFFFFF;
    margin-top: 5px;
    transition: all 0.3s ease;
}
.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    transition: all 0.3s ease;
}
.forgot-password-link {
    text-align: right;
    /* margin-top: 10px; */
    margin-bottom: 10px;
}
.forgot-password-link a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}
.forgot-password-link a:hover {
    color: #007bff;
}
.btn-login {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-login:hover {
    background-color: #0056b3;
}
.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #007bffbf;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.home-button:hover {
    background-color: #0056b3;
}
.email-verification {
    display: flex;
    gap: 10px;
}
.email-verification input {
    flex-grow: 1;
}
.email-verification button {
    white-space: nowrap;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.email-verification button:hover {
    background-color: #45a049;
}
.email-verification button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.input-tip {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}
.input-tip.error {
    color: #dc3545;
}
.input-tip.success {
    color: #28a745;
}
.email-verification {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.email-verification input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.email-verification button {
    white-space: nowrap;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.email-verification button:hover {
    background-color: #45a049;
}
.email-verification button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.form-group {
    margin-bottom: 20px;
}
.btn-login {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.btn-login:hover {
    background-color: #0056b3;
}
.hidden {
    display: none;
}
.input-tip {
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
    display: none;
}
.message-box {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.message-box.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-box.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.social-login {
margin-top: 20px;
text-align: center;
}

.btn-qq-login {
display: inline-flex;
align-items: center;
justify-content: center;
background: #12B7F5;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
width: 100%;
margin-top: 10px;
}

.btn-qq-login:hover {
background: #0E9FD9;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(18, 183, 245, 0.2);
}

.btn-qq-login i {
margin-right: 10px;
font-size: 20px;
}
.input-tip {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}
.input-tip.error {
    color: #dc3545;
    display: block;
}
.input-tip.success {
    color: #28a745;
    display: block;
}

/* 第三方登录样�?*/
.social-login {
    margin-top: 15px;
    padding-top: 10px;
}

.divider {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 13px;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-social-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-social-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-qq {
    background: linear-gradient(135deg, #12B7F5 0%, #0E9FD9 100%);
}

.btn-qq:hover {
    background: linear-gradient(135deg, #0E9FD9 0%, #0A7FB5 100%);
}

.btn-wechat {
    background: linear-gradient(135deg, #09BB07 0%, #078D05 100%);
}

.btn-wechat:hover {
    background: linear-gradient(135deg, #078D05 0%, #056D03 100%);
}

.btn-alipay {
    background: linear-gradient(135deg, #1677FF 0%, #0958D9 100%);
}

.btn-alipay:hover {
    background: linear-gradient(135deg, #0958D9 0%, #0747A6 100%);
}

/* 响应式设�?*/
@media (max-width: 480px) {
    .social-login-buttons {
        gap: 10px;
    }
    
    .btn-social-login {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* 登录Tab样式 */
.login-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.login-tabs .nav-item {
    flex: 1;
    text-align: center;
    list-style: none;
}

.login-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.login-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    font-weight: 500;
}

.login-tabs .nav-link:hover {
    color: #007bff;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.show {
    display: block;
}

/* 短信验证码输入组 */
.sms-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-send-sms {
    white-space: nowrap;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-send-sms:hover {
    background-color: #218838;
}

.btn-send-sms:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-send-sms.counting {
    background-color: #6c757d;
}
