:root {
    --brand: #1a237e;
    --gold: #c5a059;
    --white: #ffffff;
    --cream: #f8f9fa;
    --text: #333333;
    --edge: #e0e0e0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--cream);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    height: 100vh;
}
.wrapper { display: flex; height: 100%; }
.sidebar {
    width: 35%;
    background: var(--brand);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 100px 100px;
}
.logo h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; letter-spacing: 2px; margin-bottom: 5px; }
.logo span { font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.tagline { margin-top: 40px; font-size: 1rem; line-height: 1.6; color: #9fa8da; font-weight: 300; }
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}
.auth-box { width: 100%; max-width: 400px; padding: 20px; }
.auth-header { margin-bottom: 40px; }
h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 8px; color: var(--brand); }
.sub-text { font-size: 0.85rem; color: #777; line-height: 1.5; }
.input-group { margin-bottom: 25px; }
label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #777; margin-bottom: 10px; }
input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--edge);
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}
input:focus { border-bottom-color: var(--brand); }
button {
    width: 100%;
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}
button:hover { background: #0d1440; }
#notice {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #d32f2f;
    padding: 15px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
}
.hidden { display: none !important; }
.footer-links {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.75rem; font-weight: 500; }
.footer-links a:hover { color: var(--brand); }
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal {
    background: var(--white);
    max-width: 450px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-family: 'Playfair Display', serif; color: var(--brand); font-size: 1.5rem; }
.modal-header button { background: none; border: none; font-size: 2rem; color: #ccc; cursor: pointer; width: auto; padding: 0; margin: 0; }
.modal-body { font-size: 0.95rem; line-height: 1.7; color: #666; margin-bottom: 30px; }
.modal-footer button { margin: 0; padding: 12px; }
@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: 30%; padding: 40px; }
    .logo h1 { font-size: 2.5rem; }
}
