:root {
    --cocoa-900: #3b2018;
    --cocoa-700: #5c3627;
    --accent: #c97b63;
    --accent-dark: #b3674f;
    --cream: #fbf6f1;
    --ink: #3b2018;
    --muted: #8a7469;
    --input-border: #e5d9d0;
}

.auth-page {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    flex: 1 1 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,0.10) 0, transparent 35%),
        radial-gradient(circle at 88% 90%, rgba(255,255,255,0.06) 0, transparent 42%),
        linear-gradient(135deg, var(--cocoa-900) 0%, var(--cocoa-700) 56%, #9f553c 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-panel-inner { max-width: 320px; }

.brand-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.20);
    font-size: 1.7rem;
    backdrop-filter: blur(4px);
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.brand-tagline {
    color: rgba(255,255,255,0.80);
    font-weight: 400;
    line-height: 1.6;
    font-size: 0.96rem;
    margin: 0;
}

.auth-form-panel {
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background:
        radial-gradient(circle at 95% 4%, rgba(201,123,99,0.09) 0, transparent 28%),
        var(--cream);
}

.auth-form-wrap {
    width: 100%;
    max-width: 410px;
}

.auth-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 0;
}

.auth-form .form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--cocoa-900);
}

.auth-form .input-group-text {
    background: #fff;
    border: 1px solid var(--input-border);
    border-right: 0;
    color: var(--accent-dark);
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
}

.auth-form .form-control {
    border: 1px solid var(--input-border);
    border-left: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}

.auth-form .form-control::placeholder { color: #b5a89e; }

.auth-form .form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(201,123,99,0.12);
    border-color: var(--accent);
    background: #fff;
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-auth {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.65rem;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.08s ease;
}

.btn-auth:hover { background: var(--accent-dark); color: #fff; }
.btn-auth:active { transform: translateY(1px); }

.auth-link {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover { color: var(--accent); text-decoration: underline; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--input-border);
}

.auth-alert {
    border: none;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.brand-mobile {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-mobile .brand-mark { margin-bottom: 0.75rem; }
.brand-mobile .brand-name { font-size: 1.3rem; margin-bottom: 0; }

.brand-mobile .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
}

@media (max-width: 767.98px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel { padding: 2.5rem 1.25rem; }
    .brand-mobile { display: block; }
}
