/* 登录页专用样式 */
body {
    background: linear-gradient(135deg, #9cd9f2 0%, #1266f1 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #0275d8 !important;
}

/* 修复导航栏链接悬停样式 */
.navbar .nav-link {
    color: white !important;
    border-left: none !important;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: #ffcc00 !important;
    background-color: transparent !important;
    border-left: none !important;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.login-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1266f1, #5cb85c);
}

.login-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(18, 102, 241, 0.15);
}

.login-logo img {
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    width: 42px;
    justify-content: center;
}

.form-control {
    border-left: none;
    height: calc(2.5rem + 2px);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 改进输入框焦点效果 */
.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
    background-color: #f0f7ff;
    color: #0d6efd;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: none; /* 移除超出边界的蓝色轮廓 */
    outline: none;
}

.login-btn {
    background-color: #1266f1;
    border-color: #1266f1;
    height: calc(2.5rem + 2px);
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: #0d52c4;
    border-color: #0d52c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.register-btn {
    height: calc(2.5rem + 2px);
    font-weight: 500;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    color: #0d6efd !important;
}

/* 确保输出主题按钮文字颜色 */
.btn-outline-secondary:hover {
    color: #555 !important;
}

.footer {
    background-color: transparent;
    border-top: none;
    padding: 1rem 0;
    color: #fff;
    text-align: center;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

/* 平滑切换表单 */
#loginForm, #registerForm {
    transition: all 0.3s ease;
}

/* 适配移动端 */
@media (max-width: 576px) {
    .login-box {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .login-container {
        padding: 1rem 0;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .input-group, .d-grid {
        margin-bottom: 1rem;
    }
} 