/* Redwave standalone login & registration pages */

.rw-auth-page-body {
    margin: 0;
    min-height: 100dvh;
    background: #0a0a0a;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.rw-auth-page {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.25rem 2.5rem;
    background-color: #0a0a0a;
    background-image: var(--rw-auth-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.rw-auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.72) 100%
    );
    pointer-events: none;
}

.rw-auth-page > * {
    position: relative;
    z-index: 1;
}

.rw-auth-page__home-link {
    position: fixed;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 10;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.rw-auth-page__home-link:hover {
    background: rgba(255, 69, 69, 0.16);
    color: #fff;
    text-decoration: none;
}

.rw-auth-page__home-link:active {
    transform: scale(0.96);
}

.rw-auth-page__hero {
    width: 100%;
    max-width: 320px;
    margin: 0.5rem auto 1.75rem;
    text-align: center;
}

.rw-auth-page__hero-logo {
    display: inline-block;
    text-decoration: none;
}

.rw-auth-page__hero-logo img {
    max-width: min(280px, 72vw);
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.rw-auth-page__hero-fallback {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
}

.rw-auth-page__main {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rw-auth-page__card {
    width: 100%;
    padding: 2rem 1.85rem 1.75rem;
    background: rgba(8, 8, 8, 0.88);
    border: 1px solid rgba(255, 69, 69, 0.55);
    border-radius: 14px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rw-auth-brand--page {
    margin-bottom: 1rem;
}

.rw-auth-brand__monogram--ring {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.65);
    padding: 4px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.rw-auth-brand__monogram--ring img {
    border-radius: 50%;
}

.rw-auth-page__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.rw-auth-page__title em {
    font-style: normal;
    color: #ff4545;
    display: block;
    margin-top: 0.15rem;
    letter-spacing: 0.12em;
}

.rw-auth-page__subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.48);
    margin: 0 0 1.35rem;
}

.rw-auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.rw-auth-submit--page {
    margin-top: 0.25rem;
    letter-spacing: 0.1em;
}

.rw-auth-submit--page .rw-auth-submit__arrow {
    display: none;
}

.rw-auth-page__switch {
    text-align: center;
    margin-top: 1.35rem;
    padding-top: 0.15rem;
}

.rw-auth-page__switch p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.2rem;
}

.rw-auth-page__switch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff4545;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rw-auth-page__switch-link:hover {
    color: #ff6b6b;
    text-decoration: none;
}

/* intl-tel-input on dark card */
.rw-auth-page__card .iti {
    width: 100%;
}

.rw-auth-page__card .iti__flag-container {
    padding-left: 0.55rem;
}

.rw-auth-page__card .rw-auth-input-wrap .iti input.rw-auth-input {
    padding-left: 5.5rem;
}

@media (max-width: 480px) {
    .rw-auth-page {
        padding: 1.25rem 1rem 2rem;
    }

    .rw-auth-page__card {
        padding: 1.65rem 1.25rem 1.5rem;
    }

    .rw-auth-page__hero {
        margin-bottom: 1.25rem;
    }

    .rw-auth-page__title {
        font-size: 0.95rem;
    }
}
