/* =========================
   Auth — Registration Page
   ========================= */

.auth-page
{
    min-height: calc(80vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.18), transparent 55%);
}

/* Shell keeps everything nicely centered */
.auth-shell
{
    width: 100%;
    max-width: 420px;
}

/* Card with glow + subtle border */
.auth-card
{
    position: relative;
    border-radius: 1.25rem;
    padding: 1.7rem 1.5rem 1.4rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.96);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

/* Soft gradient edge inside the card */
.auth-card::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.14),
        rgba(244, 114, 182, 0.09),
        transparent 55%
    );
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.auth-card-header
{
    margin-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Tiny pill above the title for a bit of personality */
.auth-card-header::before
{
    content: "Create your Selfster account";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: rgba(209, 213, 219, 0.9);
}

/* Title + subtitle */
.auth-title
{
    font-size: 1.5rem;
    margin: 0.1rem 0 0.1rem 0;
    font-weight: 600;
}

.auth-subtitle
{
    font-size: 0.9rem;
    color: rgba(156, 163, 175, 0.95);
}

/* Form structure */
.auth-form
{
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-row
{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-row label
{
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

/* Inputs */
.form-row input
{
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    background-color: rgba(15, 23, 42, 0.94);
    color: #e5e7eb;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        transform 0.08s ease;
}

.form-row input::placeholder
{
    color: rgba(148, 163, 184, 0.7);
}

.form-row input:focus
{
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.7),
        0 0 0 6px rgba(37, 99, 235, 0.25);
    background-color: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

/* Actions */
.form-actions
{
    margin-top: 0.7rem;
}

/* Primary button */
.primary-button
{
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.85);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        #60a5fa,
        #6366f1
    );
    color: #020617;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        filter 0.1s ease,
        border-color 0.1s ease;
}

.primary-button::after
{
    content: "→";
    font-size: 0.95rem;
    translate: 0 0;
    transition: translate 0.12s ease;
}

.primary-button:hover
{
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.primary-button:hover::after
{
    translate: 2px 0;
}

.primary-button:active
{
    transform: translateY(0);
    box-shadow: none;
}

.full-width
{
    width: 100%;
}

/* Alerts (errors etc.) */
.alert
{
    border-radius: 0.9rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.95);
}

.alert.error
{
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: linear-gradient(
        135deg,
        rgba(248, 113, 113, 0.1),
        rgba(127, 29, 29, 0.2)
    );
    color: #fee2e2;
}

.alert ul
{
    margin: 0;
    padding-left: 1rem;
}

/* Footer — login link, etc. */
.auth-footer
{
    margin-top: 0.9rem;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(148, 163, 184, 0.95);
}

.auth-footer a
{
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
}

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

/* Small-screen tweaks */
@media (max-width: 480px)
{
    .auth-card
    {
        padding: 1.4rem 1.1rem 1.25rem 1.1rem;
    }

    .auth-title
    {
        font-size: 1.35rem;
    }
}
