/* Shared auth layouts and components */

.auth-shell {
    padding: 1.5rem 0 3rem;
}

.auth-panel {
    max-width: var(--auth-panel-max-width);
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: calc(var(--border-radius-lg) + 0.25rem);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card--center {
    text-align: center;
}

.auth-card-body {
    padding: 2rem;
}

.auth-card-footer {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--gray-100);
    text-align: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon-badge {
    width: var(--auth-icon-size-md);
    height: var(--auth-icon-size-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.auth-icon-badge--large {
    width: var(--auth-icon-size-lg);
    height: var(--auth-icon-size-lg);
}

.auth-icon-badge--primary {
    background: var(--surface-primary-soft);
}

.auth-icon-badge--success {
    background: var(--surface-success-soft);
}

.auth-icon-badge--danger {
    background: var(--surface-danger-soft);
}

.auth-title {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 700;
}

.auth-copy {
    margin-bottom: 0;
    color: var(--gray-600);
}

.auth-body-copy {
    color: var(--gray-600);
}

.auth-actions {
    display: grid;
    gap: 0.75rem;
}

.auth-btn-pill {
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-btn-muted {
    color: var(--gray-600);
    font-weight: 500;
}

.auth-note {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--surface-border-soft);
    border-radius: var(--border-radius-sm);
    background: var(--gray-100);
    text-align: left;
}

.auth-note-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-note-text {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.auth-link-muted {
    color: var(--gray-600);
    text-decoration: none;
}

.auth-link-muted:hover {
    color: var(--gray-800);
}

.auth-icon-bounce {
    animation: auth-bounce 2s infinite;
}

.auth-icon-pulse {
    animation: auth-pulse-success 2s infinite;
}

@keyframes auth-bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes auth-pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

@media (min-width: 768px) {
    .auth-shell {
        padding: 3rem 0;
    }

    .auth-card-body {
        padding: 3rem;
    }
}

/* Registration flow - both the login page (templates/registration/login.html)
   and the register page (templates/registration/register.html) are fully
   Tailwind now, no page-scoped rules left here for either - body background/
   text color is set via {% block body_class %} utilities on the template
   itself, same pattern as login.html. */
