/* /home/siisi/vertex/user/static/css/auth.css
   Shared split-panel layout for login / register pages. */

.auth-shell {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    display: grid;
    grid-template-columns: 5fr 6fr;
    max-width: 980px;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}
@media (max-width: 900px) {
    .auth-card { grid-template-columns: 1fr; }
}

/* ── Brand panel ─────────────────────────────────────── */
.auth-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}
@media (max-width: 900px) {
    .auth-brand { padding: 1.5rem 1.75rem; gap: .6rem; }
    .auth-brand .auth-feature { display: none; } /* compact strip on mobile */
}
.auth-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
@media (max-width: 900px) {
    .auth-brand-logo { width: 48px; height: 48px; }
}
/* div, not a heading — the dark theme forces heading colours */
.auth-brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.15;
}
.auth-brand-sub { font-size: .9rem; opacity: .9; max-width: 34ch; }
.auth-feature {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .85rem;
    opacity: .93;
}
.auth-feature .af-icon { font-size: 1.05rem; width: 22px; text-align: center; }

/* ── Form panel ──────────────────────────────────────── */
.auth-form {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .35rem;
}
.auth-sub {
    font-size: .87rem;
    color: var(--bs-secondary-color, #6b7280);
    margin-bottom: 1.5rem;
}

.auth-form label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--bs-secondary-color, #6b7280);
    margin-bottom: .25rem;
}

/* Gradient primary action, like the studio pages */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    padding: .7rem 1.2rem;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: .7rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .4);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, .5);
    color: #fff;
}
.btn-auth:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* "or" divider between password form and Google button */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--bs-secondary-color, #6b7280);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bs-border-color, #e5e7eb);
}

/* Google sign-in button — stays white in dark mode per Google's brand rules */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .65rem 1.2rem;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid #dadce0;
    border-radius: .7rem;
    background: #fff;
    color: #3c4043;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.btn-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    color: #3c4043;
    text-decoration: none;
}
.auth-google-note {
    margin-top: .6rem;
    margin-bottom: 0;
    font-size: .78rem;
    text-align: center;
    color: var(--bs-secondary-color, #6b7280);
}

/* Privacy / Terms consent row */
.auth-consent .form-check-label {
    font-size: .85rem;
    color: var(--bs-secondary-color, #6b7280);
}
.auth-consent a {
    font-weight: 600;
}

/* Secondary links under the form */
.auth-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    text-align: center;
    font-size: .85rem;
}
.auth-links a { text-decoration: none; }
.auth-links a:hover { text-decoration: underline; color: #828690; }

/* ── Single-column variant (password reset, 2FA, status pages) ── */
.auth-card-solo {
    max-width: 460px;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}
.auth-solo-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.5rem 1.4rem;
}
.auth-solo-head img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .45);
    margin-bottom: .6rem;
}
.auth-solo-title { font-size: 1.25rem; font-weight: 800; }
.auth-solo-sub { font-size: .85rem; opacity: .9; margin-top: .25rem; }
.auth-solo-body { padding: 1.75rem 1.75rem 2rem; }
