/* Zi Wei Dou Shu Login Page Styles - More Professional Version */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eef5, #e0e8f0);
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.login-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(28, 58, 89, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(28, 58, 89, 0.1);
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #1c3a59, #345f91);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1c3a59;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.login-header h2 {
    color: #666;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1c3a59;
    box-shadow: 0 0 5px rgba(28, 58, 89, 0.2);
    background: #fff;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group i {
    position: absolute;
    right: 15px;
    bottom: 12px;
    color: #999;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me input {
    margin-right: 10px;
    accent-color: #1c3a59;
}

.remember-me label {
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #1c3a59;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #345f91;
    text-decoration: none;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

.register-link a {
    color: #1c3a59;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: #345f91;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Subtle background decoration */
.background-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, #1c3a59, transparent);
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
}

.decoration-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, transparent, #1c3a59, transparent);
    width: 80%;
    top: 30%;
    left: 10%;
}

/* Logo styling */
.zwds-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    background: #1c3a59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(28, 58, 89, 0.2);
}

.zwds-logo::after {
    content: '紫微';
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-form {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
}

/* Password toggle */
.password-toggle {
    cursor: pointer;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #1c3a59;
}