/* ── RxNxt Modern Healthcare Login ── */
:root {
    --rx-primary: #0066B3;
    --rx-primary-dark: #004E8C;
    --rx-primary-light: #E8F4FC;
    --rx-teal: #0D9488;
    --rx-teal-light: #CCFBF1;
    --rx-surface: #FFFFFF;
    --rx-text: #0F172A;
    --rx-muted: #64748B;
    --rx-border: rgba(255, 255, 255, 0.22);
    --rx-glass: rgba(255, 255, 255, 0.92);
    --rx-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    --rx-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

.rx-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rx-text);
    background: #0a1628;
    overflow-x: hidden;
}

.rx-login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

/* ── Hero panel ── */
.rx-login-hero {
    position: relative;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(13, 148, 136, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 80%, rgba(0, 102, 179, 0.45) 0%, transparent 50%),
        linear-gradient(145deg, #041525 0%, #0a2540 40%, #0c3d5c 100%);
}

.rx-login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.rx-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: rxFloat 12s ease-in-out infinite;
}

.rx-login-orb-1 { width: 320px; height: 320px; background: #0D9488; top: -80px; right: 10%; animation-delay: 0s; }
.rx-login-orb-2 { width: 240px; height: 240px; background: #0066B3; bottom: 10%; left: -60px; animation-delay: -4s; }
.rx-login-orb-3 { width: 180px; height: 180px; background: #38BDF8; top: 45%; right: -40px; animation-delay: -8s; }

@keyframes rxFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}

.rx-login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.rx-login-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rx-primary), var(--rx-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.4);
}

.rx-login-brand-text strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.rx-login-brand-text span {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.rx-login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
    padding: 2rem 0;
}

.rx-login-hero-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.rx-login-hero-content h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #5EEAD4, #7DD3FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rx-login-hero-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2rem;
}

.rx-login-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.rx-login-feature {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.rx-login-feature i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7DD3FC;
    font-size: .85rem;
    flex-shrink: 0;
}

.rx-login-feature strong {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .1rem;
}

.rx-login-feature span {
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.rx-login-hero-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.4);
}

.rx-login-hero-foot span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.rx-login-hero-foot i { color: rgba(94, 234, 212, 0.8); }

/* ── Form panel ── */
.rx-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(180deg, #F0F9FF 0%, #F8FAFC 50%, #FFFFFF 100%);
    position: relative;
}

.rx-login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rx-primary), var(--rx-teal), #38BDF8);
}

.rx-login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem 2rem 2rem;
    background: var(--rx-glass);
    border-radius: var(--rx-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--rx-shadow);
    backdrop-filter: blur(20px);
}

.rx-login-card-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.rx-login-card-head .rx-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--rx-primary-light);
    color: var(--rx-primary-dark);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.rx-login-card-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    letter-spacing: -0.02em;
    color: var(--rx-text);
}

.rx-login-card-head p {
    margin: 0;
    font-size: .85rem;
    color: var(--rx-muted);
}

.rx-login-field {
    margin-bottom: 1.1rem;
}

.rx-login-field label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rx-muted);
    margin-bottom: .4rem;
}

.rx-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rx-login-input-wrap > i.field-icon {
    position: absolute;
    left: .9rem;
    color: var(--rx-muted);
    font-size: .9rem;
    pointer-events: none;
    z-index: 1;
}

.rx-login-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 2.75rem 0 2.5rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: .95rem;
    color: var(--rx-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.rx-login-input-wrap input:focus {
    outline: none;
    border-color: var(--rx-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.12);
}

.rx-login-input-wrap input::placeholder {
    color: #94A3B8;
}

.rx-login-toggle-pw {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    color: var(--rx-muted);
    cursor: pointer;
    padding: .35rem;
    font-size: .9rem;
    z-index: 1;
}

.rx-login-toggle-pw:hover { color: var(--rx-primary); }

.rx-login-submit {
    width: 100%;
    height: 50px;
    margin-top: .5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rx-primary) 0%, var(--rx-primary-dark) 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.35);
    transition: transform .15s, box-shadow .15s;
}

.rx-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 102, 179, 0.4);
}

.rx-login-submit:active { transform: translateY(0); }

.rx-login-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
}

.rx-login-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    font-size: .65rem;
    font-weight: 600;
    color: var(--rx-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rx-login-trust-item i {
    font-size: 1rem;
    color: var(--rx-teal);
}

.rx-login-classic-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: .75rem;
    color: var(--rx-muted);
}

.rx-login-classic-link a {
    color: var(--rx-primary);
    font-weight: 600;
    text-decoration: none;
}

.rx-login-classic-link a:hover { text-decoration: underline; }

.rx-login-validation {
    font-size: .8rem;
    margin-bottom: .75rem;
}

.rx-login-validation ul {
    margin: 0;
    padding-left: 1rem;
    color: #DC2626;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .rx-login-shell { grid-template-columns: 1fr; }
    .rx-login-hero { min-height: auto; padding: 2rem 1.5rem; }
    .rx-login-hero-content { padding: 1rem 0; }
    .rx-login-features { grid-template-columns: 1fr; }
    .rx-login-hero-foot { display: none; }
}

@media (max-width: 480px) {
    .rx-login-form-panel { padding: 1rem; }
    .rx-login-card { padding: 1.5rem 1.25rem; }
}
