:root {
    --primary-color: #0052a4;
    --primary-dark: #003d7a;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e1e4e8;
    --error-color: #d93025;
    --success-color: #188038;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styling */
.header {
    background-color: var(--primary-color);
    background-image: url('https://www.cqvie.edu.cn/SITE_RES/default/image/flower.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--white);
    height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .logo {
    height: 45px;
}

.header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
    margin-left: 5px;
}

.user-info {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    opacity: 0.9;
}

.logout-btn {
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-image: linear-gradient(to bottom, #f5f7fa, #e4e7eb);
}

/* Login Page */
.login-container .content {
    align-items: center;
    background: url('../images/bg.jpg') no-repeat center center; /* Fallback or keep specific bg */
    background-size: cover;
    position: relative;
}

/* Overlay for login background to ensure readability if image is used */
.login-container .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 82, 164, 0.05); /* Slight tint */
    pointer-events: none;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 164, 0.15);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 82, 164, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 82, 164, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Notice Box */
.notice-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.notice-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-content p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
    text-align: justify;
}

.notice-warning {
    background-color: #fff8f8;
    color: var(--error-color);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
    border: 1px solid #ffebeb;
}

/* Main Form Box */
.form-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Status Page */
.status-box {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    fill: var(--success-color);
}

.status-box h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.status-box p {
    color: #666;
    margin-bottom: 10px;
}

.status-detail {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 25px 0;
    text-align: left;
    font-size: 0.9rem;
}

.status-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.status-detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.status-label {
    color: #888;
}

.status-value {
    font-weight: 500;
    color: #333;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85rem;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 12px 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid #333;
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.95rem;
    color: #333;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        background-position: right bottom;
    }
    
    .header h2 {
        font-size: 1.1rem;
        margin-top: 5px;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .user-info {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .content {
        padding: 20px 15px;
    }
    
    .login-box, .form-box, .notice-box {
        padding: 25px 20px;
    }
}
