/* ═════════════════════════════════════════════════════════════════════
   Auth pages (login / register / confirm-email / OTP flow)
   Extracted from app/Views/auth/*.php for caching + maintainability.
   ═════════════════════════════════════════════════════════════════════ */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Inter', sans-serif;
            background: #f8fafc;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        /* ── Card ── */
        .rg-wrap {
            display: flex;
            width: 100%;
            max-width: 960px;
            min-height: 580px;
            background: #fff;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 40px rgba(15,23,42,.10), 0 1px 4px rgba(15,23,42,.06);
            border: 1px solid #e2e8f0;
            animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
        }

        @keyframes fadeUp {
            from { opacity:0; transform:translateY(20px); }
            to   { opacity:1; transform:translateY(0); }
        }

        /* ── Left panel ── */
        .rg-left {
            flex: 1.15;
            position: relative;
            overflow: hidden;
            background: #0f172a;
        }

        .rg-left img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .rg-left-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(15,23,42,.25) 0%, rgba(15,23,42,.92) 100%);
            z-index: 1;
        }

        .rg-left-content {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            z-index: 2;
            padding: 2.5rem 2rem 2rem;
        }

        .rg-left-logo {
            display: none;
            height: 26px;
            width: auto;
            filter: brightness(0) invert(1);
            margin-bottom: .1rem;
        }

        .rg-badge {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            background: rgba(255,255,255,.12);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,.2);
            border-radius: 99px;
            padding: .35rem .85rem;
            font-size: .72rem;
            font-weight: 600;
            color: #fff;
            letter-spacing: .04em;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        .rg-badge-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: #34d399;
            animation: dotPulse 1.8s ease-in-out infinite;
        }

        @keyframes dotPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50%       { transform: scale(1.6); opacity: .6; }
        }

        .rg-tagline {
            font-size: 1.4rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.35;
            margin-bottom: 1.25rem;
            letter-spacing: -.02em;
        }

        .rg-features { display:flex; flex-direction:column; gap:.55rem; margin-bottom:1.75rem; }

        .rg-feature {
            display: flex;
            align-items: center;
            gap: .6rem;
            font-size: .8rem;
            color: rgba(255,255,255,.8);
        }

        .rg-feature i { font-size:.7rem; color:#60a5fa; width:14px; text-align:center; }

        .rg-footer {
            font-size: .62rem;
            color: rgba(255,255,255,.4);
            border-top: 1px solid rgba(255,255,255,.1);
            padding-top: .85rem;
        }

        .rg-footer a { color:rgba(255,255,255,.55); text-decoration:none; transition:color .15s; }
        .rg-footer a:hover { color:#fff; }

        /* ── Right panel ── */
        .rg-right {
            width: 390px;
            flex-shrink: 0;
            padding: 2.75rem 2.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Brand */
        .rg-brand { display:flex; align-items:center; margin-bottom:1.75rem; }
        .rg-brand img { height:36px; width:auto; }

        /* Messages */
        .rg-flash {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            border-radius: 10px;
            padding: .7rem 1rem;
            font-size: .81rem;
            font-weight: 500;
            margin-bottom: 1.1rem;
        }

        /* Heading */
        .rg-heading { font-size:1.55rem; font-weight:800; color:#0f172a; letter-spacing:-.03em; line-height:1.2; margin-bottom:.35rem; }
        .rg-sub { font-size:.83rem; color:#94a3b8; margin-bottom:1.5rem; }

        /* Social buttons */
        .rg-social { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1.25rem; }

        .rg-social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .6rem;
            width: 100%;
            padding: .72rem 1rem;
            border-radius: 10px;
            font-size: .86rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            text-decoration: none;
            transition: background .15s, box-shadow .15s;
            border: 1.5px solid #e2e8f0;
        }

        .rg-social-btn.google { background:#fff; color:#374151; }
        .rg-social-btn.google:hover { background:#f8fafc; box-shadow:0 2px 8px rgba(0,0,0,.07); }

        .rg-social-btn img { width:18px; height:18px; }

        /* Divider */
        .rg-divider {
            display: flex;
            align-items: center;
            gap: .75rem;
            margin: 1rem 0;
            color: #cbd5e1;
            font-size: .75rem;
            font-weight: 500;
        }

        .rg-divider::before, .rg-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }

        /* Fields */
        .rg-field { margin-bottom: 1rem; }

        .rg-label {
            display: block;
            font-size: .78rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: .38rem;
            letter-spacing: .01em;
        }

        .rg-input-wrap { position: relative; }

        .rg-input-icon {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            color: #cbd5e1;
            font-size: .8rem;
            pointer-events: none;
            transition: color .2s;
        }

        .rg-input {
            width: 100%;
            padding: .72rem 1rem .72rem 2.4rem;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            background: #f8fafc;
            color: #0f172a;
            font-size: .88rem;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
            -webkit-appearance: none;
        }

        .rg-input::placeholder { color: #cbd5e1; }

        .rg-input:focus {
            border-color: #3b82f6;
            background: #fff;
            box-shadow: 0 0 0 3.5px rgba(59,130,246,.12);
        }

        .rg-input-wrap:focus-within .rg-input-icon { color: #3b82f6; }

        /* OTP hint */
        .rg-otp-hint {
            font-size: .75rem;
            color: #94a3b8;
            margin-top: .35rem;
        }

        /* Terms */
        .rg-terms {
            display: flex;
            align-items: flex-start;
            gap: .5rem;
            font-size: .78rem;
            color: #64748b;
            margin-bottom: 1.1rem;
        }

        .rg-terms input[type="checkbox"] {
            width: 15px;
            height: 15px;
            margin-top: 1px;
            accent-color: #3b82f6;
            flex-shrink: 0;
            cursor: pointer;
        }

        .rg-terms a { color: #3b82f6; text-decoration: none; font-weight: 600; }
        .rg-terms a:hover { text-decoration: underline; }

        /* Buttons row */
        .rg-btn-row { display: flex; gap: .6rem; }

        .rg-btn {
            flex: 1;
            padding: .78rem 1rem;
            border: none;
            border-radius: 10px;
            font-size: .88rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: background .2s, transform .15s, box-shadow .2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .4rem;
        }

        .rg-btn.primary {
            background: #1d4ed8;
            color: #fff;
            box-shadow: 0 3px 12px rgba(29,78,216,.3);
        }

        .rg-btn.primary:hover {
            background: #1e40af;
            transform: translateY(-1px);
            box-shadow: 0 5px 18px rgba(29,78,216,.38);
        }

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

        .rg-btn.secondary {
            background: #f1f5f9;
            color: #475569;
            font-weight: 600;
        }

        .rg-btn.secondary:hover { background: #e2e8f0; }

        /* Full-width primary */
        .rg-btn.full { flex: none; width: 100%; }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            body { padding: 1rem; align-items: flex-start; }

            .rg-wrap { flex-direction: column; border-radius: 18px; min-height: auto; }

            .rg-left { height: 160px; flex: none; width: 100%; }
            .rg-left-content {
                position: absolute;
                bottom: 0; left: 0; right: 0;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: .5rem;
                padding: 1rem 1.25rem 1rem;
            }
            .rg-features, .rg-footer, .rg-tagline, .rg-left-logo { display: none; }

            .rg-right { width: 100%; padding: 2rem 1.75rem 2.25rem; }
        }

        @media (max-width: 480px) {
            .rg-right { padding: 1.75rem 1.4rem 2rem; }
            .rg-heading { font-size: 1.35rem; }
        }
