@import url('https://fonts.bunny.net/css?family=poppins:400,500,600,700,900');

:root {
    --spot-red: #CE0E2D;
    --spot-black: #000000;
    --spot-white: #ffffff;
    --spot-page-bg: #ffffff;
    --spot-gray: #646363;
    --spot-gray-light: #e8e8e8;
    --spot-text: #1a1a1a;
    --spot-card-radius: 12px;
    --spot-input-height: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.spot-auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--spot-page-bg);
    color: var(--spot-text);
}

.spot-auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 20px 32px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spot-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.spot-auth-header img {
    width: 120px;
    max-width: 55vw;
    height: auto;
    margin-bottom: 16px;
}

.spot-auth-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--spot-red);
}

.spot-auth-title {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--spot-text);
}

.spot-auth-subtitle {
    margin: 10px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--spot-gray);
}

.spot-auth-card {
    background: var(--spot-white);
    color: var(--spot-text);
    border: 1px solid var(--spot-gray-light);
    border-radius: var(--spot-card-radius);
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.spot-auth-card--compact {
    padding: 20px 18px;
}

.spot-auth-form-group {
    margin-bottom: 18px;
}

.spot-auth-form-group:last-of-type {
    margin-bottom: 0;
}

.spot-auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--spot-text);
}

.spot-auth-input {
    display: block;
    width: 100%;
    min-height: var(--spot-input-height);
    padding: 12px 14px;
    border: 1px solid var(--spot-gray-light);
    border-radius: 10px;
    background: var(--spot-white);
    color: var(--spot-text);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spot-auth-input:focus {
    outline: none;
    border-color: var(--spot-red);
    box-shadow: 0 0 0 3px rgba(206, 14, 45, 0.12);
}

.spot-auth-input--invalid {
    background-color: #fde8eb;
    border-color: var(--spot-red);
}

.spot-auth-input--invalid:focus {
    box-shadow: 0 0 0 3px rgba(206, 14, 45, 0.2);
}

.spot-auth-help {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--spot-gray);
}

.spot-auth-note {
    margin: 0 0 16px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--spot-gray);
}

.spot-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--spot-red);
    border-radius: 999px;
    background: var(--spot-white);
    color: var(--spot-red);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.spot-auth-btn:hover,
.spot-auth-btn:focus {
    background: var(--spot-red);
    color: var(--spot-white);
}

.spot-auth-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.spot-auth-btn--primary {
    background: var(--spot-red);
    color: var(--spot-white);
}

.spot-auth-btn--primary:hover,
.spot-auth-btn--primary:focus {
    background: #b00c27;
    color: var(--spot-white);
}

.spot-auth-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.spot-auth-btn-row .spot-auth-btn {
    min-height: 42px;
    padding: 10px 8px;
    font-size: clamp(0.68rem, 2.6vw, 0.78rem);
    white-space: nowrap;
}

.spot-auth-stack {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.spot-auth-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--spot-gray-light);
    border: 0;
}

.spot-auth-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.spot-auth-alert--success {
    background: #ecfdf3;
    color: #166534;
}

.spot-auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
}

.spot-auth-alert--warning {
    background: #fff7ed;
    color: #9a3412;
}

.spot-auth-inline-alert {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--spot-red);
    color: var(--spot-white);
    font-size: 0.82rem;
    text-align: center;
}

.spot-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--spot-gray);
}

.spot-auth-footer a {
    color: var(--spot-gray);
}

.spot-auth-required {
    font-size: 0.75rem;
    color: var(--spot-gray);
}

.spot-auth-iframe-page {
    margin: 0;
    padding: 16px;
    min-height: auto;
    background: var(--spot-white);
    color: var(--spot-text);
}

.spot-auth-iframe-page .spot-auth-wrap {
    max-width: 100%;
    min-height: auto;
    padding: 0;
    justify-content: flex-start;
}

.spot-auth-iframe-page .spot-auth-header {
    text-align: left;
    margin-bottom: 16px;
}

.spot-auth-iframe-page .spot-auth-title {
    font-size: 1.15rem;
}

.spot-auth-iframe-page .spot-auth-subtitle {
    font-size: 0.88rem;
}

.spot-auth-iframe-page .spot-auth-card {
    box-shadow: none;
    border: 0;
    padding: 0;
}

@media (min-width: 480px) {
    .spot-auth-wrap {
        padding: 32px 24px 40px;
    }

    .spot-auth-card {
        padding: 28px 24px;
    }
}

@media (max-width: 360px) {
    .spot-auth-btn-row {
        grid-template-columns: 1fr;
    }
}
