/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --charcoal:       #1C1C1C;
    --charcoal-soft:  #2A2A2A;
    --warm-dark:      #3A3630;
    --bronze:         #C4A87C;
    --bronze-light:   #D4BE9A;
    --bronze-glow:    #E0CBA8;
    --cream:          #F5F0EB;
    --cream-soft:     #EDE6DE;
    --white:          #FDFCFA;
    --error:          #C4574B;
    --error-bg:       #FDF0EE;
    --success:        #5B8C5A;
    --text-primary:   #1C1C1C;
    --text-secondary: #6B6560;
    --text-muted:     #9A948D;
    --border:         #DDD6CC;
    --border-focus:   #C4A87C;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Outfit', 'Segoe UI', sans-serif;
}
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(196,168,124,0.08), transparent),
        radial-gradient(ellipse 60% 80% at 85% 90%, rgba(196,168,124,0.06), transparent);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border: 1px solid rgba(196,168,124,0.12);
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}
.login-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    background: var(--white);
    border-radius: 3px;
    box-shadow:
        0 1px 3px rgba(28,28,28,0.04),
        0 8px 32px rgba(28,28,28,0.06);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: containerReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(12px);
}
@keyframes containerReveal {
    to { opacity: 1; transform: translateY(0); }
}
.brand-panel {
    flex: 0 0 400px;
    background: var(--charcoal);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(196,168,124,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(196,168,124,0.05), transparent 60%);
    pointer-events: none;
}
.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(196,168,124,0.15);
    border-radius: 50%;
    pointer-events: none;
}
.brand-top {
    position: relative;
    z-index: 1;
}
.brand-logo {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--cream);
    margin-bottom: 0.25rem;
}
.brand-logo span {
    color: var(--bronze-light);
}
.brand-divider {
    width: 40px;
    height: 1px;
    background: var(--bronze);
    margin: 1.5rem 0;
    opacity: 0.6;
}
.brand-tagline {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(245,240,235,0.7);
    max-width: 280px;
}
.brand-bottom {
    position: relative;
    z-index: 1;
}
.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(245,240,235,0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand-feature-icon {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(196,168,124,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-feature-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--bronze-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    animation: formSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
    transform: translateX(10px);
}
@keyframes formSlide {
    to { opacity: 1; transform: translateX(0); }
}
.form-header {
    margin-bottom: 2.25rem;
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.form-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.validation-summary {
    background: var(--error-bg);
    border-left: 3px solid var(--error);
    border-radius: 0 3px 3px 0;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    animation: shakeIn 0.4s ease;
}
.validation-summary ul { list-style: none; }
.validation-summary li {
    font-size: 0.8rem;
    color: var(--error);
    font-weight: 400;
}
@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(5px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(2px); }
}
.form-group {
    margin-bottom: 1.35rem;
    position: relative;
}
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.input-wrapper {
    position: relative;
}
.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
    pointer-events: none;
}
.form-control {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}
.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(196,168,124,0.1);
}
.form-control:focus ~ svg,
.input-wrapper:focus-within svg {
    stroke: var(--bronze);
}
.form-control.input-validation-error {
    border-color: var(--error);
}
.field-validation-error {
    display: block;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.35rem;
    font-weight: 400;
}
.password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle svg {
    position: static;
    transform: none;
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    transition: stroke 0.2s ease;
}
.password-toggle:hover svg {
    stroke: var(--bronze);
}
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--bronze);
    border-color: var(--bronze);
}
.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.checkbox-wrapper span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.forgot-link {
    font-size: 0.8rem;
    color: var(--bronze);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.forgot-link:hover {
    color: var(--warm-dark);
}
.btn-login {
    width: 100%;
    padding: 0.95rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--charcoal);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.15s ease;
}
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(196,168,124,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-login:hover {
    background: var(--charcoal-soft);
}
.btn-login:hover::before {
    opacity: 1;
}
.btn-login:active {
    transform: scale(0.985);
}
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(221,214,204,0.5);
}
.form-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}
.form-footer a {
    color: var(--bronze);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.form-footer a:hover {
    color: var(--warm-dark);
}
@media (max-width: 768px) {
    body { padding: 0; }
    body::after { display: none; }
    .login-container {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .brand-panel {
        flex: 0 0 auto;
        padding: 2rem 1.75rem;
    }
    .brand-tagline { display: none; }
    .brand-bottom  { display: none; }
    .brand-panel::after { display: none; }
    .form-panel {
        padding: 2rem 1.75rem 3rem;
    }
}
@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
