.auth-page {
    color: #111827;
}

.auth-float-1 {
    position: absolute;
    top: 10%;
    left: 2%;
    z-index: 5;
}

.auth-float-2 {
    position: absolute;
    bottom: 12%;
    right: 2%;
    z-index: 5;
}

@media (min-width: 768px) {
    .auth-float-1 {
        top: 16%;
        left: 6%;
    }

    .auth-float-2 {
        bottom: 18%;
        right: 6%;
    }
}

@media (max-width: 640px) {
    .auth-float-cards {
        opacity: 0.85;
    }

    .auth-float-1 {
        top: 6%;
        left: -2%;
    }

    .auth-float-2 {
        bottom: 8%;
        right: -2%;
    }
}

.landing-float-1 {
    animation: auth-float-1 5s ease-in-out infinite;
}

.landing-float-2 {
    animation: auth-float-2 6s ease-in-out 1s infinite;
}

.landing-float-badge {
    position: relative;
}

.landing-float-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    transform: rotate(45deg);
    border-radius: 1px;
    box-shadow: 2px 2px 4px rgb(0 0 0 / 0.15);
}

@keyframes auth-float-1 {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes auth-float-2 {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-float-1,
    .landing-float-2 {
        animation: none;
    }
}

.auth-logo {
    text-decoration: none;
}

.auth-card {
    border: 2px solid #000;
}

.auth-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.auth-form {
    display: grid;
    gap: 0.875rem;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.auth-input--code {
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 600;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-btn--google {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.auth-btn--google:hover {
    border-color: #111827;
}

.auth-btn--primary {
    background: var(--brand-lime);
    border-color: #000;
    color: #000;
    font-family: var(--brand-font-heading);
}

.auth-btn--primary:hover {
    background: var(--brand-lime-hover);
}

.auth-btn--back {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 50;
    width: auto;
    max-width: none;
    padding: 0.65rem 1.25rem;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    font-family: var(--brand-font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.auth-btn--back:hover {
    background: var(--brand-lime-hover);
    box-shadow: 6px 6px 0 0 #000;
    transform: translate(-2px, -2px);
}

.auth-btn--back:active {
    box-shadow: 2px 2px 0 0 #000;
    transform: translate(2px, 2px);
}

@media (min-width: 768px) {
    .auth-btn--back {
        top: 1.25rem;
        right: 1.5rem;
    }
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: #e5e7eb;
}

.auth-alert {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-foot a {
    text-decoration: none;
}

.auth-form--verify {
    gap: 1rem;
}

.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.auth-otp-cell {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #fff;
    color: #32325d;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-cell:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgb(0 56 255 / 0.12);
}

.auth-otp-hint {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: #8898aa;
}

.auth-resend-form {
    margin-top: 1rem;
    text-align: center;
}

.auth-resend-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--brand-blue);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-resend-btn:hover {
    color: var(--brand-blue-dark);
}

@media (max-width: 420px) {
    .auth-otp-cell {
        font-size: 1.125rem;
    }
}

/* Onboarding placeholders */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--brand-surface);
}

.auth-shell .auth-card {
    max-width: 420px;
    padding: 1.75rem;
}

.auth-shell h1 {
    margin: 0 0 0.5rem;
    font-family: var(--brand-font-heading);
    font-size: 1.5rem;
}

.auth-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.auth-lead {
    margin: 0 0 1rem;
    color: #4b5563;
}
