/*
 * Log in, sign up, password reset and activation pages. Same look as the website (robustemail.com):
 * navy and amber, Outfit headings, Plus Jakarta Sans text. Light only.
 */
:root {
    --au-navy: #023047;
    --au-navy-2: #0A4061;
    --au-amber: #FFB703;
    --au-amber-hover: #FFC433;
    --au-amber-tint: #FFF5D6;
    --au-amber-ink: #7A4A00;
    --au-sky: #8ECAE6;
    --au-ink: #102A3A;
    --au-text-2: #4A5D6A;
    --au-text-3: #5E707C;
    --au-bg: #FFFFFF;
    --au-soft: #F6F7FB;
    --au-border: #E6E9F0;
    --au-border-strong: #D5DBE4;
    --au-green: #106B3A;
    --au-green-tint: #E7F6EC;
    --au-red: #B42318;
    --au-red-tint: #FDECEA;
    --au-focus: 0 0 0 3px rgba(255, 183, 3, 0.55);
    --au-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --au-display: 'Outfit', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body.rl-auth-page {
    min-height: 100vh;
    background: var(--au-bg);
    color: var(--au-ink);
    font-family: var(--au-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.rl-auth-page a { color: var(--au-navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(2, 48, 71, 0.25); text-underline-offset: 3px; }
.rl-auth-page a:hover { text-decoration-color: var(--au-amber); }
.rl-auth-page :focus-visible { outline: none; box-shadow: var(--au-focus); border-radius: 8px; }

.rl-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    min-height: 100vh;
}

/* ---------------------------------------------------------------- form side */

.rl-auth__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px clamp(20px, 5vw, 64px);
}

.rl-auth__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rl-auth__logo { display: inline-flex; text-decoration: none !important; }
.rl-auth__logo img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.rl-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-decoration: none !important;
    color: var(--au-text-2) !important;
}

.rl-auth__back:hover { color: var(--au-navy) !important; }
.rl-auth__back svg { flex: none; }

.rl-auth__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
}

.rl-auth__body--wide { max-width: 520px; }

.rl-auth__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
    color: var(--au-text-3);
}

.rl-auth__foot a { font-weight: 500; color: var(--au-text-3) !important; text-decoration: none; }
.rl-auth__foot a:hover { color: var(--au-navy) !important; }

/* Headline */
.rl-auth-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--au-amber-tint);
    color: var(--au-amber-ink);
}

.rl-auth-icon svg { width: 26px; height: 26px; }

.rl-auth-title {
    margin: 0;
    font-family: var(--au-display);
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--au-navy);
}

.rl-auth-lead { margin: 8px 0 28px; color: var(--au-text-2); font-size: 15px; }
.rl-auth-lead strong { color: var(--au-ink); }

/* Alerts */
.rl-auth-alert {
    display: flex;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    background: var(--au-red-tint);
    color: var(--au-red);
}

.rl-auth-alert svg { flex: none; margin-top: 1px; }
.rl-auth-alert--success { background: var(--au-green-tint); color: var(--au-green); }
.rl-auth-alert--info { background: #E5F3F8; color: #0B5C78; }
.rl-auth-alert p { margin: 0; }

/* Social buttons */
.rl-auth-social { display: grid; gap: 10px; }

.rl-auth-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--au-border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--au-ink) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s;
}

.rl-auth-social a:hover { border-color: var(--au-navy); background: var(--au-soft); }
.rl-auth-social img { width: 20px; height: 20px; }

.rl-auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 13px;
    color: var(--au-text-3);
}

.rl-auth-or::before,
.rl-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--au-border); }

/* Fields */
.rl-auth-form { display: grid; gap: 18px; }
.rl-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rl-auth-field { display: grid; gap: 6px; min-width: 0; }

.rl-auth-field__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.rl-auth-field label,
.rl-auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--au-ink);
}

.rl-auth-field__top a { font-size: 13px; }

.rl-auth-input {
    position: relative;
}

.rl-auth-input input,
.rl-auth-input select,
.rl-auth-field > select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--au-border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--au-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.rl-auth-input select,
.rl-auth-field > select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5D6A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.rl-auth-input input::placeholder { color: #8A99A6; }
.rl-auth-input input:hover,
.rl-auth-input select:hover { border-color: #B9C3CF; }

.rl-auth-input input:focus,
.rl-auth-input select:focus {
    outline: none;
    border-color: var(--au-navy);
    box-shadow: var(--au-focus);
}

.rl-auth-input--toggle input { padding-right: 52px; }

.rl-auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--au-text-3);
    cursor: pointer;
    transform: translateY(-50%);
}

.rl-auth-eye:hover { color: var(--au-navy); background: var(--au-soft); }
.rl-auth-eye .is-hide { display: none; }
.rl-auth-eye[aria-pressed='true'] .is-show { display: none; }
.rl-auth-eye[aria-pressed='true'] .is-hide { display: block; }

.rl-auth-field.has-error input,
.rl-auth-field.has-error select { border-color: var(--au-red); }

.rl-auth-error { margin: 0; font-size: 13px; font-weight: 500; color: var(--au-red); }
.rl-auth-hint { margin: 0; font-size: 13px; color: var(--au-text-3); }

.rl-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--au-text-2);
    cursor: pointer;
}

.rl-auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--au-navy);
}

/* Time zone and language, folded away */
.rl-auth-more {
    border: 1px solid var(--au-border);
    border-radius: 12px;
    background: var(--au-soft);
}

.rl-auth-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--au-text-2);
    cursor: pointer;
    list-style: none;
}

.rl-auth-more summary::-webkit-details-marker { display: none; }
.rl-auth-more summary strong { color: var(--au-ink); font-weight: 600; }
.rl-auth-more summary span:last-child { font-weight: 600; color: var(--au-navy); white-space: nowrap; }
.rl-auth-more[open] summary span:last-child { visibility: hidden; }
.rl-auth-more__body { display: grid; gap: 14px; padding: 0 14px 14px; }

/* Captcha */
.rl-auth-captcha { display: flex; justify-content: center; overflow: hidden; }
.rl-auth-captcha .help-block { display: block; margin-top: 6px; font-size: 13px; color: var(--au-red); }

/* Buttons */
.rl-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--au-amber);
    color: var(--au-navy) !important;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.rl-auth-btn:hover { background: var(--au-amber-hover); transform: translateY(-1px); }
.rl-auth-btn[disabled] { opacity: 0.75; cursor: progress; transform: none; }

.rl-auth-btn--secondary {
    background: #fff;
    border-color: var(--au-border-strong);
}

.rl-auth-btn--secondary:hover { background: #fff; border-color: var(--au-navy); }

.rl-auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(2, 48, 71, 0.25);
    border-top-color: var(--au-navy);
    border-radius: 50%;
    animation: rl-auth-spin 0.8s linear infinite;
}

.rl-auth-btn.is-busy .rl-auth-spinner { display: inline-block; }

@keyframes rl-auth-spin { to { transform: rotate(360deg); } }

.rl-auth-actions { display: grid; gap: 10px; margin-top: 4px; }

.rl-auth-terms { margin: 0; font-size: 13px; color: var(--au-text-3); text-align: center; }
.rl-auth-switch { margin: 26px 0 0; font-size: 15px; color: var(--au-text-2); text-align: center; }

/* Chosen plan (sign-up from the website's pricing page) */
.rl-auth-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #F5D98A;
    border-radius: 14px;
    background: var(--au-amber-tint);
}

.rl-auth-plan__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--au-amber-ink); }
.rl-auth-plan strong { display: block; font-family: var(--au-display); font-size: 18px; color: var(--au-navy); }
.rl-auth-plan span { font-size: 14px; color: var(--au-text-2); }
.rl-auth-plan a { flex: none; font-size: 14px; }

/* Numbered steps (check your email) */
.rl-auth-steps { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }

.rl-auth-steps li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: var(--au-text-2);
    counter-increment: step;
}

.rl-auth-steps li::before {
    content: counter(step);
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--au-soft);
    border: 1px solid var(--au-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--au-navy);
}

/* ---------------------------------------------------------------- brand side */

.rl-auth__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 64px clamp(32px, 5vw, 72px) 0;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(33, 158, 188, 0.35), transparent 60%),
        radial-gradient(700px 420px at -20% 110%, rgba(255, 183, 3, 0.16), transparent 60%),
        var(--au-navy);
    color: #fff;
}

.rl-auth-side__pill {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 183, 3, 0.16);
    color: var(--au-amber);
    font-size: 13px;
    font-weight: 700;
}

.rl-auth-side__title {
    margin: 0;
    max-width: 16ch;
    font-family: var(--au-display);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.rl-auth-side__list { display: grid; gap: 12px; margin: 26px 0 36px; padding: 0; list-style: none; }

.rl-auth-side__list li {
    display: flex;
    gap: 12px;
    font-size: 16px;
    color: #D6E4EC;
}

.rl-auth-side__list svg { flex: none; margin-top: 2px; color: var(--au-amber); }

.rl-auth-side__shot {
    margin: auto -40px 0 0;
    border-radius: 14px 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.rl-auth-side__shot img { display: block; width: 100%; height: auto; }

/* Plan card on the sign-up side */
.rl-auth-side__plan {
    margin: 0 0 36px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.rl-auth-side__plan-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-amber); }
.rl-auth-side__plan-name { margin: 6px 0 2px; font-family: var(--au-display); font-size: 26px; font-weight: 700; color: #fff; }
.rl-auth-side__plan-price { font-size: 16px; color: #D6E4EC; }
.rl-auth-side__plan-price strong { color: #fff; font-size: 20px; }
.rl-auth-side__plan .rl-auth-side__list { margin: 16px 0 0; gap: 8px; }
.rl-auth-side__plan .rl-auth-side__list li { font-size: 14px; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 960px) {
    .rl-auth { grid-template-columns: 1fr; }
    .rl-auth__side { display: none; }
    .rl-auth__body { margin: 32px auto; }
}

@media (min-width: 961px) {
    /* The plan shows in the brand panel on wide screens */
    .rl-auth-plan--inline { display: none; }
}

@media (max-width: 520px) {
    .rl-auth__main { padding: 20px 16px; }
    .rl-auth__logo img { height: 34px; }
    .rl-auth-row { grid-template-columns: 1fr; }
    .rl-auth__back span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rl-auth-btn, .rl-auth-btn:hover { transition: none; transform: none; }
    .rl-auth-spinner { animation-duration: 2s; }
}
