/* RocketGlow Auth - FULL */

:root {
    --rk-brand: #6C5CE7;
    --rk-brand2: #7C3AED;
    --rk-text: #0f172a;
    --rk-muted: #64748b;
    --rk-bg: #f6f8fc;
    --rk-border: rgba(0, 0, 0, .08);
    --rk-shadow: 0 12px 30px rgba(2, 6, 23, .10);
    --rk-shadow2: 0 18px 40px rgba(2, 6, 23, .14);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.rk-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 20% 15%, rgba(108, 92, 231, .18), transparent 60%),
        radial-gradient(700px 360px at 85% 25%, rgba(124, 58, 237, .12), transparent 55%),
        radial-gradient(800px 420px at 50% 100%, rgba(2, 6, 23, .06), transparent 60%),
        var(--rk-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 12px;
}

/* containers */
.rk-wrap {
    width: 100%;
    max-width: 1100px;
}

.rk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.rk-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 950;
    letter-spacing: -.4px;
    color: var(--rk-text);
    text-decoration: none;
}

.rk-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rk-brand), var(--rk-brand2));
    box-shadow: 0 14px 26px rgba(108, 92, 231, .25);
}

/* buttons */
.rk-btn-outline {
    border: 1px solid rgba(108, 92, 231, .25) !important;
    color: var(--rk-brand2) !important;
    background: #fff !important;
    border-radius: 12px;
    font-weight: 850;
    padding: .55rem .95rem;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, border-color .25s ease, color .25s ease;
}

.rk-btn-outline:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(108, 92, 231, .12) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
}

.rk-btn-outline:hover {
    border-color: rgba(108, 92, 231, .45) !important;
    transform: translateY(-1px);
}

.rk-btn-outline:hover:before {
    transform: translateX(120%);
}

.rk-primary {
    border: 0 !important;
    background: linear-gradient(135deg, var(--rk-brand), var(--rk-brand2)) !important;
    color: #fff !important;
    font-weight: 900;
    border-radius: 12px;
    padding: .7rem 1rem;
    box-shadow: 0 14px 26px rgba(108, 92, 231, .22);
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, filter .2s ease;
}

.rk-primary:after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 40%;
    height: 180%;
    background: rgba(255, 255, 255, .22);
    transform: rotate(20deg);
    transition: left .6s ease;
    filter: blur(1px);
}

.rk-primary:hover {
    filter: brightness(1.03);
}

.rk-primary:hover:after {
    left: 130%;
}

.rk-primary:active {
    transform: translateY(1px) scale(.99);
}

/* cards & grid */
.rk-card {
    border-radius: 18px;
    border: 1px solid var(--rk-border);
    box-shadow: var(--rk-shadow);
    overflow: hidden;
    background: #fff;
}

.rk-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

/* left side */
.rk-left {
    padding: 28px 26px 26px;
    background: radial-gradient(900px 420px at 0% 0%, rgba(108, 92, 231, .18), transparent 65%), #fff;
    border-right: 1px solid rgba(0, 0, 0, .06);
}

.rk-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .06);
    font-weight: 850;
    color: #475569;
    font-size: 12px;
}

.rk-title {
    margin: 14px 0 6px;
    font-weight: 950;
    letter-spacing: -.7px;
    color: var(--rk-text);
    font-size: 1.65rem;
    line-height: 1.15;
}

.rk-sub {
    margin: 0 0 16px;
    color: var(--rk-muted);
    font-weight: 650;
}

.rk-bullets {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rk-bullet {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .07);
    background: #fff;
}

.rk-bullet i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(108, 92, 231, .12);
    color: var(--rk-brand2);
    box-shadow: 0 12px 20px rgba(108, 92, 231, .10);
    flex: 0 0 auto;
}

.rk-bullet b {
    color: var(--rk-text);
    font-weight: 950;
}

.rk-bullet div {
    color: var(--rk-muted);
    font-weight: 650;
}

/* right side */
.rk-right {
    padding: 26px 26px 24px;
    background: #fff;
}

.rk-form-title {
    font-weight: 950;
    letter-spacing: -.6px;
    color: var(--rk-text);
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.rk-form-sub {
    color: var(--rk-muted);
    font-weight: 650;
    margin: 0 0 16px;
}

/* inputs */
.rk-input {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    font-weight: 750 !important;
    padding: .65rem .85rem !important;
    height: auto !important;
}

.rk-input:focus {
    box-shadow: 0 0 0 .2rem rgba(108, 92, 231, .14) !important;
    border-color: rgba(108, 92, 231, .45) !important;
}

.rk-input-group .input-group-text {
    border-radius: 12px 0 0 12px !important;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    border-right: 0 !important;
    background: #fff !important;
    color: #64748b;
}

.rk-input-group .rk-input {
    border-radius: 0 12px 12px 0 !important;
}

.rk-eye {
    cursor: pointer;
    user-select: none;
}

.rk-link {
    color: var(--rk-brand2);
    font-weight: 850;
    text-decoration: none;
}

.rk-link:hover {
    text-decoration: underline;
}

.rk-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #94a3b8;
    font-weight: 800;
    font-size: 12px;
    margin: 14px 0 12px;
}

.rk-divider:before,
.rk-divider:after {
    content: "";
    height: 1px;
    background: rgba(0, 0, 0, .10);
    flex: 1;
}

.rk-social {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.rk-social .btn {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    background: #fff !important;
    font-weight: 850;
    color: #334155 !important;
    padding: .6rem .85rem;
    transition: transform .15s ease, border-color .2s ease;
}

.rk-social .btn:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 92, 231, .35) !important;
}

.rk-foot {
    margin-top: 14px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px;
}

/* reveal */
.rk-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

.rk-reveal.rk-in {
    opacity: 1;
    transform: translateY(0);
}

/* register name group */
.rk-name-group {
    display: flex;
    gap: .6rem;
}

.rk-name-group .rk-name-wrap {
    flex: 1;
    min-width: 0;
}

/* OTP */
.rk-otp {
    display: flex;
    gap: .55rem;
    justify-content: center;
    margin: 12px 0 10px;
}

.rk-otp input {
    width: 48px;
    height: 54px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .14);
    font-weight: 950;
    font-size: 20px;
    outline: none;
    background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease, transform .12s ease;
}

.rk-otp input:focus {
    border-color: rgba(108, 92, 231, .45);
    box-shadow: 0 0 0 .2rem rgba(108, 92, 231, .14);
    transform: translateY(-1px);
}

/* password strength */
.rk-strength {
    display: flex;
    gap: .35rem;
    margin-top: .55rem;
}

.rk-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
    position: relative;
}

.rk-bar>span {
    position: absolute;
    inset: 0;
    width: 0%;
    background: rgba(108, 92, 231, .55);
    transition: width .25s ease;
}

.rk-strength-text {
    margin-top: .35rem;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

/* flash */
.rk-flash-wrap {
    width: 100%;
    margin: 0 auto 12px;
    padding: 0 4px;
}

.rk-alert {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .06);
    font-weight: 750;
}

/* toast */
.rk-toast-host {
    position: fixed;
    inset: 16px 16px auto auto;
    max-width: calc(100vw - 32px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.rk-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: var(--rk-shadow2);
    overflow: hidden;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.rk-toast.rk-in {
    opacity: 1;
    transform: translateY(0);
}

.rk-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-weight: 900;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.rk-toast-body {
    padding: 10px 12px;
    font-weight: 700;
    color: #334155;
}

.rk-toast-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 6px;
    opacity: .7;
}

.rk-toast-close:hover {
    opacity: 1;
}

.rk-toast-success .rk-toast-head {
    background: rgba(16, 185, 129, .10);
    color: #065f46;
}

.rk-toast-error .rk-toast-head {
    background: rgba(239, 68, 68, .10);
    color: #7f1d1d;
}

.rk-toast-info .rk-toast-head {
    background: rgba(59, 130, 246, .10);
    color: #1e3a8a;
}

.rk-toast-warn .rk-toast-head {
    background: rgba(245, 158, 11, .12);
    color: #78350f;
}

/* responsive */
@media (max-width:991px) {
    .rk-grid {
        grid-template-columns: 1fr;
    }

    .rk-left {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }
}

@media (max-width:576px) {
    .rk-name-group {
        flex-direction: column;
        gap: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .rk-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}