/* Hostport account access — dark cohesive sign in / register / reset */

.login-layout {
    min-height: 100vh;
    margin: 0;
    width: 100%;
    background: var(--hp-bg-deepest, #141c28);
}

.login-layout-back-link {
    display: inline-block;
    padding: 1rem 1.5rem 0;
    color: var(--hp-text-muted, #9aa7bd);
    font-size: 0.9rem;
    text-decoration: none;
}

.login-layout-back-link:hover,
.login-layout-back-link:focus-visible {
    color: var(--hp-text, #f2f5fa);
    text-decoration: underline;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
}

.auth-brand,
.auth-panel-wrap {
    min-width: 0;
}

@media (min-width: 960px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.auth-brand {
    position: relative;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--hp-gradient-brand, linear-gradient(145deg, #192332 0%, #2d3949 45%, #1e2e47 100%));
    color: var(--hp-text, #f8fafc);
}

.auth-brand::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hp-glow, rgba(110, 146, 192, 0.35)) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hp-glow-subtle, rgba(69, 104, 112, 0.3)) 0%, transparent 70%);
    bottom: -60px;
    left: -40px;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
}

.auth-logo {
    display: block;
    height: 3.75rem;
    width: auto;
    margin-bottom: 1.5rem;
    filter: var(--hp-logo-filter);
}

.auth-tagline {
    font-family: var(--hp-brand-font);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.auth-sub {
    opacity: 0.88;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 2rem;
    color: var(--hp-text-secondary, #cbd5e1);
}

.auth-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    opacity: 0.92;
}

.auth-perks li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.auth-panel-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
    background: var(--hp-gradient-shell, var(--hp-gradient-content));
}

@media (min-width: 960px) {
    .auth-panel-wrap {
        padding: 0;
        border-left: 1px solid var(--hp-border, rgba(110, 146, 192, 0.22));
    }
}

.auth-panel-wrap::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hp-glow, rgba(110, 146, 192, 0.35)) 0%, transparent 70%);
    top: -60px;
    left: -40px;
    pointer-events: none;
    opacity: 0.4;
}

.auth-panel {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 1.75rem;
    box-sizing: border-box;
}

@media (min-width: 960px) {
    .auth-panel {
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem 3.5rem 1.5rem;
    }
}

.auth-panel h1 {
    font-family: var(--hp-brand-font);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--hp-text, #f8fafc);
    letter-spacing: -0.01em;
}

.auth-panel .auth-lead {
    color: var(--hp-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    line-height: 1.45;
}

.auth-panel .auth-lead strong {
    color: var(--hp-text-secondary, #cbd5e1);
}

.auth-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--hp-surface, #242d40);
    border: 1px solid var(--hp-border-subtle, rgba(110, 146, 192, 0.14));
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hp-text-muted);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s, color 0.15s;
}

.auth-tab:hover {
    color: var(--hp-text-secondary, #cbd5e1);
}

.auth-tab.active {
    background: var(--hp-surface-raised, #2d3949);
    color: var(--hp-primary-accent, #a0c7f6);
    box-shadow: var(--hp-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.2));
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hp-text-secondary, #cbd5e1);
    margin-bottom: 0.35rem;
}

.auth-field input,
.auth-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--hp-border, rgba(110, 146, 192, 0.22));
    border-radius: 8px;
    font-size: 1rem;
    background: var(--hp-surface-raised, #2d3949);
    color: var(--hp-text, #f8fafc);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2rem;
}

.auth-field input::placeholder {
    color: var(--hp-text-muted);
}

.auth-field-optional {
    font-weight: 400;
    color: var(--hp-text-muted, #94a3b8);
}

.auth-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--hp-text-muted, #94a3b8);
}

.auth-captcha {
    margin: 1rem 0;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--hp-primary-accent, #a0c7f6);
    box-shadow: var(--hp-focus-ring, 0 0 0 3px rgba(110, 146, 192, 0.25));
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--hp-gradient-primary, linear-gradient(135deg, #6e92c0 0%, #5a7aa9 100%));
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
}

.auth-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.auth-submit:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(110, 146, 192, 0.4);
}

.auth-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.auth-link-row {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--hp-text-muted);
}

.auth-link-row button,
.auth-link-row a {
    color: var(--hp-primary-accent, #a0c7f6);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: inherit;
}

.auth-link-row button:hover,
.auth-link-row a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: right;
    margin: -0.35rem 0 0.75rem;
}

.auth-forgot a {
    font-size: 0.8rem;
    color: var(--hp-primary-accent, #a0c7f6);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.auth-alert.error {
    background: rgba(249, 119, 127, 0.16);
    color: var(--hp-text);
    border: 1px solid rgba(249, 119, 127, 0.35);
    border-inline-start: 3px solid var(--hp-danger);
}

.auth-alert.success {
    background: rgba(93, 191, 116, 0.16);
    color: var(--hp-text);
    border: 1px solid rgba(93, 191, 116, 0.35);
    border-inline-start: 3px solid var(--hp-success);
}

.auth-alert.info {
    background: rgba(110, 146, 192, 0.22);
    color: var(--hp-text);
    border: 1px solid rgba(110, 146, 192, 0.42);
    border-inline-start: 3px solid var(--hp-primary-accent);
}

.auth-alert.warning {
    background: rgba(250, 193, 82, 0.16);
    color: var(--hp-text);
    border: 1px solid rgba(250, 193, 82, 0.35);
    border-inline-start: 3px solid var(--hp-warning);
}

.auth-dev-hint {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(250, 193, 82, 0.1);
    border: 1px solid rgba(250, 193, 82, 0.28);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--hp-warning, #fac152);
    word-break: break-all;
}

.auth-dev-hint a {
    color: #f5d078;
    font-weight: 600;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--hp-text-muted);
    text-decoration: none;
    cursor: pointer;
}

.auth-back:hover {
    color: var(--hp-primary-accent, #a0c7f6);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
    color: var(--hp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hp-border-subtle, rgba(148, 163, 184, 0.12));
}

.auth-submit-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hp-border, rgba(110, 146, 192, 0.22));
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-primary-accent, #a0c7f6);
    background: var(--hp-surface, #242d40);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.auth-submit-outline:hover:not(:disabled) {
    background: var(--hp-surface-raised, #2d3949);
    border-color: var(--hp-primary, #6e92c0);
}

.auth-submit-outline:active:not(:disabled) {
    transform: scale(0.99);
}

.auth-submit-outline:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.auth-passkey {
    margin-top: 0;
}

.auth-btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 959px) {
    .auth-panel {
        background: var(--hp-surface, #242d40);
        border: 1px solid var(--hp-border-subtle, rgba(148, 163, 184, 0.12));
        border-radius: var(--hp-radius-lg);
        box-shadow: var(--hp-shadow, 0 4px 24px rgba(0, 0, 0, 0.28));
    }
}

.auth-terms-consent {
    margin: 0.25rem 0 1rem;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--hp-text-muted, #94a3b8);
    cursor: pointer;
}

.auth-terms-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--hp-primary, #6e92c0);
}

.auth-terms-label a {
    color: var(--hp-primary-accent, #a0c7f6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-terms-label a:hover {
    color: var(--hp-text, #f8fafc);
}

.auth-legal-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 1.25rem 1.75rem 1.5rem;
    border-top: 1px solid var(--hp-border-subtle, rgba(148, 163, 184, 0.12));
    font-size: 0.8125rem;
    box-sizing: border-box;
}

@media (min-width: 960px) {
    .auth-legal-footer {
        max-width: none;
        padding: 1.25rem 3.5rem 2rem;
    }
}

.auth-legal-footer a {
    color: var(--hp-text-muted, #94a3b8);
    text-decoration: none;
}

.auth-legal-footer a:hover {
    color: var(--hp-primary-accent, #a0c7f6);
}

.auth-legal-footer-sep {
    color: var(--hp-text-muted, #64748b);
    user-select: none;
}
