

/* ===== Auth split layout ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* a touch wider on the media side */
    min-height: 100vh;
    background: #0A0A0A;
    }

/* Left media */
.auth-media {
    position: relative;
    overflow: hidden;
}
.auth-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.auth-overlay {
    position: absolute; inset: 0;
    background: rgba(192, 46, 0, 0.40); /* 40% red overlay (#C02E00) */
}

.auth-video {
    z-index: 0;
}
.auth-overlay {
    z-index: 1; 
}

.auth-logo {
    position: absolute;
    inset: 0;                         /* fill the media area */
    display: grid;
    place-items: center;              /* centers horizontally + vertically */
    z-index: 2;                       /* above the red overlay */
    pointer-events: none;             
}

.auth-logo svg {
    height: clamp(20px, 12vw, 90px); /* responsive size */
    width: auto;
}

/* Right panel */
.auth-panel {
    display: grid; place-items: center;
    background: #0A0A0A; /* solid black */
    color: #FFFFFF;
    padding: clamp(24px, 5vw, 64px);
}
.auth-panel-inner {
    width: min(520px, 100%);
}

.auth-title {
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 20px;
}

/* Inputs */
.auth-input {
    background: #0E0E0E;
    border: 1px solid #242424;
    color: #fff;
    padding: .9rem 1rem;
    border-radius: 12px;
}

.auth-input::placeholder {
    color: #9aa0a6;
}
.auth-input:focus {
    border-color: #C02E00;
    box-shadow: 0 0 0 .25rem rgba(255, 59, 48, .25);
    background: #101010;
    color: #fff;
}

/* Button — red */
.auth-btn {
    --red:#C02E00;
    background: var(--red);
    color: #fff;
    padding: .9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    width: 100%;
    transition: transform .06s ease, box-shadow .2s ease, opacity .15s ease;
    box-shadow: 0 10px 24px rgba(255, 59, 48, .28);
}
.auth-btn:hover { 
    transform: translateY(-1px); opacity: .95; 
}

/* Links */
.auth-link{
    color: #FFD166;
    text-decoration: none;
    font-weight: 600;
}
.auth-link:hover { 
    text-decoration: underline; 
}

/* Flash area */
.auth-flash {
    min-height: 1.25rem; color: #ffb3b8; 
}

/* Responsive: stack on small screens */
@media (max-width: 992px) {
    .auth-split{ grid-template-columns: 1fr; }
    .auth-media{ height: 40vh; }
    .auth-panel{ min-height: 60vh; }
}

/* Separator line */
.auth-separator {
    border: none;
    border-top: 1px solid #333;
    margin: 24px 0 16px;
}

/* Register link */
.auth-register-link {
    color: #C02E00;
    font-weight: 700;
    text-decoration: none;
}
.auth-register-link:hover {
    text-decoration: underline;
}

/* Close button positioning */
.auth-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

/* Close button */
.auth-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

.auth-close .close-icon {
    font-size: 1.75rem;   /* adjust size */
    color: #FFFFFF;          /* white icon */
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-close .close-icon:hover {
    color: #C02E00;
    transform: scale(1.1);
}

/* Wider inner wrapper for longer forms (register) */
.auth-panel-inner--wide {
    width: min(680px, 100%);
}

.auth-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;              /* vertical spacing between fields */
    margin-bottom: 12px;    /* space after the group */
}
/* Grid helpers for form rows */
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.auth-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    .auth-row-2, .auth-row-3 {
        grid-template-columns: 1fr; 
    }
}

/* Wrapper for each field (used by Form templates above) */
.auth-field {
    margin-bottom: 5px; 
}

/* Error message right under field */
.auth-error {
    color: #C02E00 !important;          /* PACE red */
    font-size: .95rem !important;
    line-height: 1.25rem !important;
    margin-bottom: 5px !important;     /* space before next field */
}

/* When fields are in grid rows, keep even spacing */
.auth-row-2 .auth-field,
.auth-row-3 .auth-field { 
    margin-bottom: 14px !important;
}


