/* entrance.css — branded split-screen shell for allauth entrance pages.
   Linked only from allauth/layouts/base.html, so these selectors never reach
   the authenticated app (which uses base_generic.html). Relies on the --vft-*
   custom properties defined in style.css (loaded first). */

.vft-entrance {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* Left brand panel — WHITE so it's seamless with the logo's opaque white
   background (the webm/PNG have no alpha; any tint here shows a box). */
.vft-entrance__brand {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}
.vft-entrance__brand .vft-logo {
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.vft-entrance__brand .vft-logo img,
.vft-entrance__brand .vft-logo video {
    width: 100%;
    height: auto;
}

/* Right form column — carries the soft brand gradient so the split still reads
   now that the left (logo) pane is plain white. */
.vft-entrance__form {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, #f0f6ff 0%, #f8fafc 50%, #eef4fb 100%);
    overflow-y: auto;
}
.vft-entrance__inner {
    width: 100%;
    max-width: 420px;
}
/* The form sits in a white card so it lifts off the tinted pane. */
.vft-entrance__card {
    text-align: center;
    background: #fff;
    border-radius: .75rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 24px rgba(20, 121, 227, .08), 0 1px 4px rgba(0, 0, 0, .04);
}

/* login renders its form via allauth's {% element form %} (form__entrance.html),
   which blanks the .card class but still emits .card-body / .card-footer wrappers;
   signup uses a plain <form>. Neutralize that nested card chrome so both entrance
   pages match. Scoped to the form column so it can never flatten a legitimately
   carded element elsewhere in the shell. */
.vft-entrance__form .card {
    border: 0;
    background: transparent;
}
.vft-entrance__form .card-body {
    padding: 0;
}
.vft-entrance__form .card-footer {
    padding: 0;
    margin-top: 1rem;
    background: transparent;
    border-top: 0;
}

/* Logo motion fallbacks: show video, hide the static sibling by default */
.vft-logo .vft-logo-static { display: none; }
@media (prefers-reduced-motion: reduce) {
    .vft-logo .vft-logo-video { display: none; }
    .vft-logo .vft-logo-static { display: inline-block; }
}

/* Brand-styled controls (scoped to the entrance) */
.vft-entrance .form-control,
.vft-entrance .form-select {
    border-color: #dee2e6;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.vft-entrance .form-control:focus,
.vft-entrance .form-select:focus {
    border-color: var(--vft-primary);
    box-shadow: 0 0 0 .2rem rgba(20, 121, 227, .12);
}
.vft-entrance .btn-primary {
    background: var(--vft-primary);
    border-color: var(--vft-primary);
    transition: all .2s ease;
}
.vft-entrance .btn-primary:hover {
    background: var(--vft-link-hover);
    border-color: var(--vft-link-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 121, 227, .25);
}
.vft-entrance .btn-outline-primary {
    color: var(--vft-primary);
    border-color: var(--vft-primary);
    transition: all .2s ease;
}
.vft-entrance .btn-outline-primary:hover {
    background: var(--vft-primary);
    border-color: var(--vft-primary);
    color: #fff;
}

/* "or" divider referenced by login.html / signup.html */
.vft-entrance .entrance-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: .82rem;
}
.vft-entrance .entrance-divider::before,
.vft-entrance .entrance-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Stack on tablet/mobile: brand panel becomes a slim top band */
@media (max-width: 991.98px) {
    .vft-entrance { flex-direction: column; }
    .vft-entrance__brand {
        flex: 0 0 auto;
        padding: 1.5rem;
    }
    .vft-entrance__brand .vft-logo { max-width: 180px; }
    .vft-entrance__form {
        flex: 1 1 auto;
        align-items: flex-start;
        padding: 1.5rem 1.25rem 2.5rem;
    }
    .vft-entrance__card {
        padding: 1.5rem 1.25rem;
        border-radius: .5rem;
    }
}
