:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --border-radius: 0.375rem;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    position: relative;
    overflow-x: hidden;
}

/* 动态背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1976d2, #2196f3);
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40%;
}

.wave:nth-child(1) {
    animation: wave 20s linear infinite;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.2);
}

.wave:nth-child(2) {
    animation: wave 15s linear infinite;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.1);
}

.wave:nth-child(3) {
    animation: wave 10s linear infinite;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.05);
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 0;
    width: 100%;
    max-width: 900px;
    display: flex;
}

.login-main {
    padding: 3rem 4rem;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
}

/* 移除左侧导航相关样式 */
.login-sidebar,
.login-sidebar::before,
.sidebar-content,
.sidebar-content h2,
.sidebar-content p {
    display: none;
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 360px;
}

.login-header i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.login-header h4 {
    color: #2b3035;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-form {
    width: 100%;
    max-width: 360px;
}

.form-control {
    height: 48px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    background: white;
}

.form-check {
    margin-bottom: 1.5rem;
}

.btn-primary {
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

.form-label {
    font-weight: 500;
    color: #2b3035;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .login-card {
        max-width: 400px;
        flex-direction: column;
    }
    
    .login-card::before {
        width: 100%;
        height: 150px;
    }
    
    .login-card::after {
        width: 100%;
        height: 150px;
    }
    
    .login-main {
        width: 100%;
        padding: 2rem;
    }
}

/* 密码显示切换按钮样式 */
.input-group .btn-outline-secondary {
    border-color: #e9ecef;
    color: #6c757d;
    background: white;
}

.input-group .btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #2b3035;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 忘记密码链接样式 */
.login-form a {
    color: #6c757d;
    transition: color 0.3s ease;
}

.login-form a:hover {
    color: #0d6efd;
    text-decoration: none;
}

/* 添加左侧区域样式 */
.login-card::before {
    content: '';
    display: block;
    width: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    position: relative;
    overflow: hidden;
}

/* 左侧区域的装饰图案 */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* 左侧欢迎区域样式 */
.login-side {
    width: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.side-content {
    position: relative;
    z-index: 1;
}

.side-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.side-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
    margin-bottom: 0;
}

/* 移除之前的伪元素样式 */
.login-card::before,
.login-card::after {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-card {
        max-width: 400px;
        flex-direction: column;
    }
    
    .login-side {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .side-content h2 {
        font-size: 1.25rem;
    }
    
    .side-content p {
        font-size: 0.8rem;
    }
    
    .login-main {
        width: 100%;
        padding: 1rem;
    }
}

/* 注册链接样式 */
.login-form .text-center {
    margin-top: 0.75rem;
}

.login-form .text-center a {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 0.5rem;
}

.login-form .text-center a:hover {
    color: #0a58ca;
    text-decoration: underline !important;
}

.login-form .text-muted {
    font-size: 0.9rem;
}

/* 注册页面特定样式 */
#registerForm .mb-3 {
    margin-bottom: 0.5rem !important;
}

#registerForm .form-label {
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}

#registerForm .form-control {
    padding: 0.25rem 0.5rem;
    height: 32px;
    font-size: 0.85rem;
}

#registerForm .btn-primary {
    height: 32px;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
}

/* 调整注册页面的头部 */
#registerForm + .login-header {
    margin-bottom: 1rem;
}

#registerForm + .login-header i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

#registerForm + .login-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* 调整注册页面的左侧内容 */
.login-side .side-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-side .side-content p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* 调整注册页面主内容区域的内边距 */
.login-card .login-main {
    padding: 1.5rem;
}

.login-card .login-side {
    padding: 1.5rem;
}

/* 返回登录链接样式 */
#registerForm .text-center {
    margin-top: 0.75rem;
}

#registerForm .text-center a {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* 调整警告框样式 */
#registerForm .alert {
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-side {
        padding: 1rem;
    }
    
    .login-side .side-content h2 {
        font-size: 1.25rem;
    }
    
    .login-side .side-content p {
        font-size: 0.8rem;
    }
    
    #registerForm .mb-3 {
        margin-bottom: 0.35rem !important;
    }
    
    .login-card .login-main {
        padding: 1rem;
    }
} 