/* ============================================================
   LOGIN — Boucherie UTAMU
   File: assets/css/login.css
   Self-contained. No other stylesheet required.
   ============================================================ */

:root {
    --ink: #171411;
    --muted: #746d65;
    --cream: #f7f2e9;
    --paper: #fffdf9;
    --wine: #7d1420;
    --wine2: #a4212d;
    --gold: #c79a43;
    --line: #e8dfd2;
    --green: #2c7656;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============ LEFT — VISUAL ============ */
.auth-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 40px clamp(28px, 5vw, 68px) 32px;
    color: #fff;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        url('../img/boucherie.jpg') center/cover no-repeat,
        linear-gradient(135deg, #3a090d, #7d1420); /* fallback if image missing */
    transform: scale(1.06);
    animation: authZoom 26s ease-in-out infinite alternate;
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 85% 15%, rgba(199, 154, 67, .22), transparent 55%),
        linear-gradient(135deg,
            rgba(58, 9, 13, .94) 0%,
            rgba(125, 20, 32, .82) 55%,
            rgba(58, 9, 13, .78) 100%);
}

.auth-visual > * { position: relative; z-index: 2; }

@keyframes authZoom {
    0%   { transform: scale(1.06); }
    100% { transform: scale(1.16); }
}

/* Brand */
.auth-visual .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-visual .brand__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    font: 700 28px 'Playfair Display', serif;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.auth-visual .brand__text b {
    display: block;
    font: 700 18px 'Playfair Display', serif;
    letter-spacing: .14em;
    color: #fff;
    line-height: 1.1;
}

.auth-visual .brand__text small {
    display: block;
    font-size: 9px;
    letter-spacing: .3em;
    color: #f0d7a0;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Pitch */
.auth-visual__body h2 {
    font: 700 clamp(30px, 3.6vw, 46px)/1.08 'Playfair Display', serif;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.auth-visual__body .lead {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .82);
    max-width: 460px;
    margin: 0 0 28px;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
    line-height: 1.5;
}

.auth-points li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    color: var(--gold);
    background: rgba(199, 154, 67, .15);
    border: 1px solid rgba(199, 154, 67, .4);
}

.auth-visual__foot {
    margin: 0;
    font-size: 11px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
}

/* ============ RIGHT — FORM ============ */
.auth-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 64px);
    background: var(--paper);
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 154, 67, .1), transparent 70%);
    pointer-events: none;
}

.auth-panel__inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    animation: authFadeUp .7s .1s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* Header */
.auth-head { margin-bottom: 26px; }

.auth-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--wine);
    padding: 6px 12px;
    background: var(--cream);
    border-radius: 999px;
    margin-bottom: 14px;
}

.auth-head h1 {
    font: 700 clamp(30px, 4vw, 42px) 'Playfair Display', serif;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 0 0 8px;
}

.auth-head p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.55;
    background: #fce8e8;
    color: #8b1f28;
    border: 1px solid rgba(139, 31, 40, .15);
    animation: authFadeUp .35s ease both;
}

.alert svg { flex-shrink: 0; margin-top: 1px; }

/* Fields */
.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #443c35;
    margin-bottom: 8px;
}

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    transition: color var(--transition);
}

.control input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fdfbf7;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition),
                background var(--transition),
                box-shadow var(--transition);
}

.control input::placeholder { color: #b3aba1; }
.control input:hover:not(:disabled) { border-color: #d6cab8; }

.control input:focus {
    border-color: var(--wine);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(125, 20, 32, .08);
}

.control:focus-within .control__icon { color: var(--wine); }

.control input:disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #f3eee7;
}

.control--password input { padding-right: 50px; }

.control__toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.control__toggle:hover { color: var(--wine); background: var(--cream); }

/* Submit */
.auth-panel .btn {
    width: 100%;
    margin-top: 4px;
    padding: 15px 24px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--wine2), var(--wine));
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 22px rgba(125, 20, 32, .25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform var(--transition),
                box-shadow var(--transition),
                opacity var(--transition);
}

.auth-panel .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(125, 20, 32, .35);
}

.auth-panel .btn:active:not(:disabled) { transform: translateY(0); }
.auth-panel .btn:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }

/* Foot */
.auth-foot {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

.auth-foot svg { flex-shrink: 0; color: var(--green); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual {
        min-height: auto;
        justify-content: flex-start;
        padding: 38px 32px 44px;
    }
    .auth-visual__body h2 { font-size: clamp(28px, 5vw, 38px); }
    .auth-panel { padding: 44px 28px 60px; }
}

@media (max-width: 620px) {
    .auth-visual { padding: 26px 22px 32px; gap: 24px; }
    .auth-visual .brand__mark { width: 44px; height: 44px; font-size: 24px; }
    .auth-visual .brand__text b { font-size: 15px; letter-spacing: .1em; }
    .auth-visual .brand__text small { font-size: 8px; letter-spacing: .25em; }
    .auth-visual__body .lead,
    .auth-visual__foot { display: none; }
    .auth-visual__body h2 { font-size: 26px; margin-bottom: 16px; }
    .auth-points { gap: 10px; }
    .auth-points li { font-size: 12.5px; }
    .auth-panel { padding: 34px 20px 48px; }
    .auth-head h1 { font-size: 28px; }
    .auth-head p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual::before,
    .auth-panel__inner,
    .alert { animation: none !important; }
}