/* 认证页面 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #5fa8ff;
    --accent-color: #4a90e2;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主体 */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0b58e5 0%, #06a1ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

/* 主内容容器 */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

/* 认证容器 */
.auth-container {
    width: 100%;
    max-width: 900px;
    padding: 0px 0px 35px;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* 温馨提示卡片 */
.tips-card {
    flex: 0.5;
    background: white;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    animation: slideUp 0.6s ease-out 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tips-title {
    display: flex;
    align-items: center;
    color: #00ff97;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tips-title i {
    margin-right: 10px;
    color: #00ff97;
    font-size: 1.2rem;
}

.tips-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-content li {
    margin-bottom: 15px;
}

.tips-content p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 登录卡片 */
.auth-card {
    flex: 1;
    background: white;
    border-radius: 13px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.auth-header {
    background: white;
    color: var(--text-color);
    padding: 30px 30px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-body {
    padding: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2583ef;
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background: #2980b9;
    transform: none;
    box-shadow: none;
}

.btn-link {
    background: none;
    color: var(--accent-color);
    padding: 8px 0 15px;
    width: auto;
    font-weight: 500;
    transition: none;
}

/* 模态框样式 */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: none;
    padding: 24px 30px 20px;
}

.modal-title {
    font-weight: 700;
    color: var(--text-color);
}

.modal-body {
    padding: 30px;
}

/* 导航栏样式 */
.login-nav {
    position: relative;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 0 0 13px 13px;
}

.login-nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.login-nav .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1671f9 0%, #3ccdfb 100%);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgb(0 208 255 / 34%);
}

.login-nav .logo-text {
    font-weight: 600;
    color: white;
}

.login-nav .header-title {
    color: #a2edf3;
    padding: 15px 10px 15px;
    font-size: 0.95rem;
}

/* 小型消息提示样式 */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 300px;
    min-width: 250px;
}

.toast-message .alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    animation: slideInRightSmall 0.3s ease-out;
}

.toast-message .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.toast-message .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.toast-message .alert .btn-close {
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* 动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRightSmall {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-message .alert {
    animation: slideInRightSmall 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        gap: 20px;
    }
    
    .tips-card, .auth-card {
        width: 100%;
    }
    
    /* 登录卡片在上，提示卡片在下 */
    .tips-card {
        order: 2;
    }
    
    .auth-card {
        order: 1;
    }
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* 页脚样式 */
.footer {
    position: relative;
    padding: 0px 22px 30px;
    text-align: center;
    border-radius: 13px 13px 0 0;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 6px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0.8;
}
