/*
 * Horizon theme — authentication screens.
 *
 * Deliberately NOT a split-screen/two-column layout (that composition
 * belongs to the default theme). Single centered column instead: a wide
 * photo banner (brand + badge + headline over the deployment's education
 * photo) sits above the form card, which is layered directly beneath it.
 * Restyles the same .auth-* classes resources/views/auth/* already use
 * (those files are unmodified; only guest.blade.php's surrounding layout
 * and this stylesheet are theme-specific).
 */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #eef0f3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hz-auth-page { width: 100%; display: flex; flex-direction: column; align-items: center; }

.hz-auth-shell {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
}

/* ── Photo banner — a horizontal band, not a vertical side panel ── */
.hz-auth-banner {
    position: relative;
    height: 240px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background-color: var(--client-secondary);
    background-size: cover;
    background-position: center 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 26px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}
.hz-auth-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(var(--client-secondary-rgb), .82) 0%,
        rgba(var(--client-secondary-rgb), .35) 45%,
        rgba(var(--client-secondary-rgb), .92) 100%
    );
}
.hz-auth-banner-top {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 10px;
}
.hz-auth-banner-logo { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.hz-auth-banner-name { font-size: .85rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }

.hz-auth-banner-bottom { position: relative; z-index: 2; }
.hz-auth-banner-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    border-radius: 999px; padding: 4px 12px;
    font-size: .65rem; font-weight: 700; letter-spacing: .03em;
    margin-bottom: 10px;
}
.hz-auth-banner-bottom h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.01em;
    max-width: 380px;
    margin: 0;
}
.hz-auth-banner-bottom h1 em { font-style: normal; color: #fff; opacity: .78; }

.hz-auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 28px rgba(16,24,40,.07);
    padding: 34px 32px;
    animation: hzAuthUp .35s ease both;
}
@keyframes hzAuthUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hz-auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: .68rem;
    line-height: 1.7;
    color: #9aa1ac;
}
.hz-auth-foot a { color: var(--client-primary); }

/* ── Reused by resources/views/auth/*.blade.php (unmodified files) ── */
.auth-eyebrow {
    font-size: .63rem; font-weight: 700; color: var(--client-primary);
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.auth-title { font-size: 1.32rem; font-weight: 800; color: #14171f; line-height: 1.25; margin-bottom: 6px; letter-spacing: -.01em; }
.auth-subtitle { font-size: .8rem; color: #6b7280; line-height: 1.6; margin-bottom: 26px; }

.auth-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .76rem; color: #6b7280; text-decoration: none;
    font-weight: 600; margin-bottom: 22px; transition: color .15s;
}
.auth-back:hover { color: var(--client-primary); }

.auth-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    font-size: .79rem; line-height: 1.55; margin-bottom: 18px;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert-error   { background: #fef2f2; color: #7f1d1d; }
.auth-alert-success { background: #f0fdf4; color: #14532d; }
.auth-alert-info    { background: #f0f9ff; color: #0c4a6e; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .74rem; font-weight: 600; color: #14171f; margin-bottom: 6px;
}
.auth-field label a { font-size: .72rem; font-weight: 600; color: var(--client-primary); text-decoration: none; }
.auth-field label a:hover { text-decoration: underline; }
.auth-error { font-size: .72rem; color: #dc2626; margin-top: 5px; }

.auth-input-wrap {
    display: flex; align-items: stretch;
    background: #fff; border: 1.5px solid #e6e8ec;
    border-radius: 10px; overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input-wrap:focus-within { border-color: var(--client-primary); box-shadow: 0 0 0 3px rgba(var(--client-primary-rgb), .1); }
.auth-input-icon {
    display: flex; align-items: center; padding: 0 13px; color: #9aa1ac; font-size: .78rem;
    border-right: 1px solid #f1f2f5; background: #fafbfc; flex-shrink: 0;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--client-primary); background: rgba(var(--client-primary-rgb), .05); }
.auth-input-wrap input {
    flex: 1; border: none; outline: none; padding: 11px 13px; font-size: .875rem;
    color: #14171f; background: transparent; font-family: inherit; min-width: 0;
}
.auth-input-wrap input::placeholder { color: #c2c6cd; }
.auth-toggle-btn {
    display: flex; align-items: center; padding: 0 13px; background: transparent; border: none;
    border-left: 1px solid #f1f2f5; cursor: pointer; color: #9aa1ac; font-size: .78rem; flex-shrink: 0;
}
.auth-toggle-btn:hover { color: var(--client-primary); }

.auth-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.auth-check-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--client-primary); cursor: pointer; }
.auth-check-row label { font-size: .78rem; color: #6b7280; cursor: pointer; font-weight: 500; }

.auth-btn {
    width: 100%; padding: 12px 20px;
    background: var(--client-primary); color: #fff;
    font-family: inherit; font-size: .88rem; font-weight: 700;
    border: none; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(var(--client-primary-rgb), .22);
}
.auth-btn:hover { background: var(--client-secondary); }
.auth-btn:active { transform: translateY(1px); }

.auth-link-row { margin-top: 18px; font-size: .79rem; color: #6b7280; text-align: center; }
.auth-link-row a { color: var(--client-primary); font-weight: 600; text-decoration: none; }
.auth-link-row a:hover { text-decoration: underline; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid #f1f2f5; }
.auth-divider span { font-size: .61rem; color: #c2c6cd; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.auth-strength { margin-top: 8px; }
.auth-strength-bars { display: flex; gap: 4px; }
.auth-strength-bar { flex: 1; height: 3px; border-radius: 99px; background: #e6e8ec; }
.auth-strength-label { font-size: .7rem; color: #9aa1ac; margin-top: 6px; min-height: 1.1em; font-weight: 500; }

.auth-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 12px 0 18px; }
.auth-req { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: #9aa1ac; }
.auth-req-dot {
    width: 16px; height: 16px; border-radius: 50%; background: #e6e8ec;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-req-dot i { font-size: .45rem; color: #fff; }
.auth-req.met { color: var(--client-primary); }
.auth-req.met .auth-req-dot { background: var(--client-primary); }

@media (max-width: 480px) {
    .hz-auth-banner { height: 190px; padding: 16px 20px; border-radius: 16px 16px 0 0; }
    .hz-auth-banner-bottom h1 { font-size: 1.1rem; max-width: none; }
    .hz-auth-card { padding: 26px 22px; border-radius: 0 0 16px 16px; }
}
