/* ==================== 登录页面样式 ==================== */

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-logo {
    font-size: 72px;
    color: #1e40af;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.login-logo:hover {
    transform: scale(1.1) rotate(5deg);
    color: #0284c7;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
}

.login-form .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 15px 12px 40px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.login-form .form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.login-form .form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.login-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.login-form .input-group {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.login-form .input-group:focus-within {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.login-form .input-group-text {
    height: 48px;
    border-radius: 8px 0 0 8px;
    border: none;
    background: transparent;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form .input-group-text i {
    color: #1e40af;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    text-transform: uppercase;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.6);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8ecf4;
}

.login-footer a {
    color: #1e40af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-footer a:hover {
    color: #0284c7;
    transform: translateY(-2px);
    text-decoration: underline;
}

.login-footer .mx-2 {
    color: #cbd5e0;
    font-size: 12px;
}

/* 登录表单复选框样式 */
.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
}

.login-form .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0;
}

.login-form .form-check-input:hover {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.login-form .form-check-input:checked {
    background: #1e40af;
    border-color: #1e40af;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form .form-check-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
}

.login-form .form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    user-select: none;
    transition: color 0.3s;
}

.login-form .form-check-label:hover {
    color: #475569;
}

/* 底部提示框 */
.login-tips {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.login-tips small {
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.login-tips strong {
    color: #1e40af;
    font-weight: 600;
    padding: 0 2px;
}

.hidden {
    display: none !important;
}

.login-error {
    background-color: #fee;
    color: #c33;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
