/*
 * The combined sign-in gate (public_html/index.php) - a standalone
 * split-screen layout, not the shared site header/footer chrome, since
 * this is the very first thing a logged-out visitor sees.
 */

.access-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.14), transparent 45%),
                var(--osl-bg);
}

.access-page {
    width: 100%;
    max-width: 1180px;
    min-height: 660px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .access-page {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

.access-panel {
    padding: 3rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--osl-surface);
    border: 1px solid var(--osl-border);
    border-radius: var(--osl-radius-lg);
    box-shadow: var(--osl-shadow-lift);
}

/* Entrance fade-up on load - reveal.js doesn't run on this standalone
   page, so a pure-CSS keyframe covers the first impression instead.
   Gated behind prefers-reduced-motion at the bottom of this file. */
@keyframes access-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.access-panel-form {
    animation: access-enter 0.5s var(--osl-ease) both;
}

.access-panel-brand {
    animation: access-enter 0.5s var(--osl-ease) 0.08s both;
}

.access-panel-brand {
    position: relative;
    overflow: hidden;
}

.access-brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--osl-purple), var(--osl-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.access-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--osl-text-muted);
    margin-bottom: 0.5rem;
}

.access-panel-brand h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.access-lead {
    color: var(--osl-text-muted);
    max-width: 34rem;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.access-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.access-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.access-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--osl-bg-elevated);
    border: 1px solid var(--osl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--osl-text-muted);
}

.access-step strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.access-step p {
    margin: 0;
    color: var(--osl-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 26rem;
}

.access-note {
    background: var(--osl-bg-elevated);
    border: 1px solid var(--osl-border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--osl-text-muted);
    max-width: 30rem;
}

.access-note strong {
    color: var(--osl-text);
}

.access-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.access-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.access-card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: var(--osl-text-muted);
}

.access-badge-18 {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.15);
    color: var(--osl-danger);
}

.access-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.access-subtitle {
    color: var(--osl-text-muted);
    font-size: 0.83rem;
    line-height: 1.45;
    margin: 0 0 1.25rem;
}

.access-tabs {
    display: flex;
    gap: 0.4rem;
    background: var(--osl-bg-elevated);
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
}

.access-tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--osl-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.access-tab.active {
    background: var(--osl-surface);
    color: var(--osl-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.access-tab-panel {
    display: none;
}

.access-tab-panel.active {
    display: block;
}

.access-step-panel {
    display: none;
}

.access-step-panel.active {
    display: block;
}

.access-legal {
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: var(--osl-text-muted);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Code-entry modal */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--osl-surface);
    border: 1px solid var(--osl-border-strong);
    border-radius: var(--osl-radius-lg);
    padding: 2rem;
    box-shadow: var(--osl-shadow-lift);
    text-align: center;
}

.modal-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
}

.modal-card .subtitle {
    margin: 0 0 1.25rem;
}

.modal-card .field {
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--osl-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--osl-text);
}

.otp-countdown {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--osl-purple), var(--osl-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.25rem;
}

.otp-countdown.expiring {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--osl-danger);
}

.otp-code-input {
    width: 100%;
    padding: 0.75rem 0.8rem;
    background: var(--osl-bg-elevated);
    border: 1px solid var(--osl-border);
    border-radius: 8px;
    color: var(--osl-text);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-align: center;
}

.otp-code-input:focus {
    outline: none;
    border-color: var(--osl-purple);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.otp-expired-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--osl-danger);
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--osl-cyan);
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .access-panel-form,
    .access-panel-brand {
        animation: none;
    }
}
