/* ═══════════════════════════════════════════════════════════════════
   RIOMARES AUTH — Diseño basado en riomares.com (v1.0.6)
   Estilo claro: blanco + verde menta + acentos azulados
   ═══════════════════════════════════════════════════════════════════ */

/* Cuando el JS ha movido el wrapper al <body>, forzamos que ocupe
   todo el viewport. Evita huecos blancos en temas con max-width. */
body.rioauth-active {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body.rioauth-active > *:not(.rioauth-wrapper):not(script):not(style):not(noscript) {
    display: none !important;
}

:root {
    /* Paleta principal (riomares.com) */
    --rio-mint:         #3FB8AF;   /* verde menta principal */
    --rio-mint-light:   #5EC4BD;   /* hover y acentos suaves */
    --rio-mint-soft:    #E8F6F4;   /* fondo de iconos / hovers */
    --rio-mint-ghost:   rgba(63, 184, 175, 0.08);

    --rio-teal:         #1B5E5A;   /* texto headings, navy menta */
    --rio-blue-deep:    #0F2C3E;   /* texto principal oscuro */

    /* Neutros */
    --rio-bg:           #FAFCFC;   /* fondo general */
    --rio-card:         #FFFFFF;   /* tarjetas */
    --rio-card-alt:     #F4F8F9;   /* tarjetas secundarias */
    --rio-text:         #1A2A36;   /* texto principal */
    --rio-text-soft:    #5A6B7A;   /* texto secundario */
    --rio-text-mute:    #8895A3;   /* texto suave */
    --rio-border:       #E3EBEF;   /* bordes finos */
    --rio-border-hi:    #C8D5DC;   /* bordes hover */

    /* Estados */
    --rio-error:        #E25555;
    --rio-success:      #3FB87A;
    --rio-warning:      #E8A845;

    /* Sombras */
    --rio-shadow-sm:    0 1px 3px rgba(15, 44, 62, 0.06);
    --rio-shadow-md:    0 4px 16px rgba(15, 44, 62, 0.08);
    --rio-shadow-lg:    0 12px 40px rgba(15, 44, 62, 0.12);
}

/* ── Reset suave dentro del wrapper ────────────────────────────── */
.rioauth-wrapper *,
.rioauth-wrapper *::before,
.rioauth-wrapper *::after {
    box-sizing: border-box;
}

/* ── Wrapper full-page ─────────────────────────────────────────── */
.rioauth-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--rio-bg);
    color: var(--rio-text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    z-index: 99999;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Header con logo ─────────────────────────────────────────── */
.rioauth-topbar {
    position: absolute;
    top: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
}
.rioauth-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.rioauth-lang {
    display: flex;
    align-items: center;
}
.rioauth-lang-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.rioauth-lang-flags {
    display: flex;
    align-items: center;
    gap: 3px;
}
.rioauth-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.rioauth-lang-flag:hover {
    background: var(--rio-mint-soft);
    border-color: rgba(15, 118, 110, 0.18);
}
.rioauth-lang-flag.is-active {
    background: var(--rio-mint-soft);
    border-color: var(--rio-teal);
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.12);
}
.rioauth-flag-emoji {
    font-size: 14px;
    line-height: 1;
    display: block;
}
.rioauth-lang-more {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.rioauth-lang-select {
    max-width: 132px;
    height: 26px;
    font-size: 11px;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    background: rgba(255, 255, 255, 0.85);
    color: var(--rio-text);
    cursor: pointer;
}
.rioauth-lang-select:focus {
    outline: 2px solid rgba(15, 118, 110, 0.35);
    outline-offset: 1px;
}
.rioauth-lang .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.rioauth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rio-teal);
}
.rioauth-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    box-shadow:
        0 0 0 1px rgba(94, 196, 189, 0.34),
        0 0 10px rgba(63, 184, 175, 0.34),
        0 0 22px rgba(63, 184, 175, 0.18),
        0 4px 12px rgba(12, 32, 56, 0.22);
    animation: rioauth-logo-glow 4.2s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    will-change: box-shadow, transform;
}
@keyframes rioauth-logo-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(94, 196, 189, 0.34),
            0 0 10px rgba(63, 184, 175, 0.34),
            0 0 22px rgba(63, 184, 175, 0.18),
            0 4px 12px rgba(12, 32, 56, 0.22);
        filter: saturate(1) brightness(1);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(94, 196, 189, 0.55),
            0 0 16px rgba(63, 184, 175, 0.55),
            0 0 34px rgba(63, 184, 175, 0.3),
            0 4px 14px rgba(12, 32, 56, 0.26);
        filter: saturate(1.12) brightness(1.08);
    }
}
.rioauth-logo:hover .rioauth-logo-img,
.rioauth-logo:focus-visible .rioauth-logo-img {
    transform: translateY(-1px) scale(1.06);
    box-shadow:
        0 0 0 1px rgba(94, 196, 189, 0.75),
        0 0 20px rgba(63, 184, 175, 0.7),
        0 0 44px rgba(63, 184, 175, 0.38),
        0 8px 20px rgba(12, 32, 56, 0.3);
    filter: saturate(1.18) brightness(1.12);
    animation-duration: 2s;
}
.rioauth-logo:active .rioauth-logo-img {
    transform: translateY(0) scale(1.02);
}
.rioauth-logo:focus-visible {
    outline: 2px solid var(--rio-mint);
    outline-offset: 4px;
    border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .rioauth-logo-img {
        animation: none;
    }
}
.rioauth-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--rio-mint) 0%, var(--rio-mint-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(63, 184, 175, 0.25);
}
.rioauth-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--rio-teal);
}
.rioauth-logo-text small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--rio-text-mute);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: -2px;
}
.rioauth-back-home {
    font-size: 13px;
    color: var(--rio-text-soft);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
}
.rioauth-back-home:hover {
    color: var(--rio-mint);
    background: var(--rio-mint-soft);
}

/* ── Grid principal (panel brand + panel form) ──────────────────── */
.rioauth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ── Panel izquierdo: marca + logo ─────────────────────────────── */
.rioauth-brand-panel {
    background: linear-gradient(160deg, #F0F9F7 0%, #E8F6F4 60%, #DFF1EE 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
/* Patrón decorativo de ondas en el fondo */
.rioauth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(63, 184, 175, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(94, 196, 189, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.rioauth-brand-panel > * {
    position: relative;
    z-index: 1;
}

/* Logo central (sustituye brújula) */
.rioauth-brand-logo-wrap {
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rioBrandLogoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rioauth-brand-logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 8px 24px rgba(63, 184, 175, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.rioauth-brand-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 12px 32px rgba(63, 184, 175, 0.40));
}
@keyframes rioBrandLogoIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}
/* Respaldo cuando el PNG del logo no está disponible */
.rioauth-brand-logo-fallback {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    font-size: 72px;
    color: #fff;
    background: linear-gradient(135deg, var(--rio-mint) 0%, var(--rio-mint-light) 100%);
    box-shadow:
        0 0 0 8px rgba(63, 184, 175, 0.10),
        0 20px 60px rgba(63, 184, 175, 0.25);
}

/* Texto del brand */
.rioauth-brand-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--rio-teal);
    margin: 0 0 14px;
    letter-spacing: -1px;
    text-align: center;
    line-height: 1.1;
}
.rioauth-brand-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--rio-mint);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 36px;
    text-align: center;
}

/* Showcase: 4 paneles (carta, radar, radio, IA) */
.rioauth-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 480px;
}
.rioauth-showcase-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(63, 184, 175, 0.18);
    border-radius: 14px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.rioauth-showcase-panel:hover,
.rioauth-showcase-panel.is-active {
    background: #fff;
    border-color: var(--rio-mint);
    transform: translateY(-2px);
    box-shadow: var(--rio-shadow-md);
}
.rioauth-showcase-panel.is-active {
    box-shadow: 0 0 0 1px rgba(63, 184, 175, 0.35), var(--rio-shadow-md);
}
.rioauth-showcase-panel.is-ia {
    background: rgba(239, 246, 255, 0.92);
    border-color: rgba(59, 130, 246, 0.22);
}
.rioauth-showcase-panel.is-ia:hover,
.rioauth-showcase-panel.is-ia.is-active {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.45);
}
.rioauth-showcase-visual {
    position: relative;
    height: 58px;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(240, 253, 250, 0.85);
    border: 1px solid rgba(63, 184, 175, 0.16);
}
.rioauth-showcase-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rio-teal);
    line-height: 1.25;
}
.rioauth-showcase-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--rio-text-mute);
}

/* Mini preview: carta náutica */
.rioauth-mini-chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(63, 184, 175, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 184, 175, 0.18) 1px, transparent 1px);
    background-size: 14px 14px;
}
.rioauth-mini-chart-buoy {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rio-mint);
    box-shadow: 0 0 0 3px rgba(63, 184, 175, 0.2);
}
.rioauth-mini-chart-course {
    position: absolute;
    top: 22px;
    left: 28px;
    width: 72%;
    height: 2px;
    background: linear-gradient(90deg, var(--rio-mint), rgba(15, 118, 110, 0.75));
    transform: rotate(-18deg);
    transform-origin: left center;
    border-radius: 2px;
}

/* Mini preview: radar PPI */
.rioauth-mini-radar-scope {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(15, 118, 110, 0.35);
    box-shadow:
        inset 0 0 0 8px rgba(63, 184, 175, 0.08),
        inset 0 0 0 16px rgba(63, 184, 175, 0.05);
}
.rioauth-mini-radar-sweep {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(15, 118, 110, 0.35) 0deg, transparent 42deg, transparent 360deg);
    animation: rioRadarSweep 3.2s linear infinite;
}
.rioauth-mini-radar-blip {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.55);
    animation: rioRadarBlip 3.2s linear infinite;
}
@keyframes rioRadarSweep {
    to { transform: rotate(360deg); }
}
@keyframes rioRadarBlip {
    0%, 68% { opacity: 0; }
    72%, 100% { opacity: 1; }
}

/* Mini preview: radio VHF */
.rioauth-mini-radio-face {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(224, 242, 241, 0.95));
}
.rioauth-mini-radio-display {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.25);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #047857;
    font-family: ui-monospace, monospace;
}
.rioauth-mini-radio-wave {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 28px;
    height: 14px;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 20% 50%, transparent 58%, rgba(15, 118, 110, 0.45) 60%, transparent 62%),
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(15, 118, 110, 0.35) 60%, transparent 62%),
        radial-gradient(circle at 80% 50%, transparent 58%, rgba(15, 118, 110, 0.25) 60%, transparent 62%);
    animation: rioRadioPulse 1.8s ease-in-out infinite;
}
@keyframes rioRadioPulse {
    0%, 100% { opacity: 0.45; transform: translateY(-50%) scale(0.92); }
    50%      { opacity: 1;    transform: translateY(-50%) scale(1); }
}

/* Mini preview: IA integrada en los 3 simuladores */
.rioauth-showcase-visual.is-ia {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.12), rgba(239, 246, 255, 0.95));
}
.rioauth-mini-ia-orbit {
    position: absolute;
    inset: 10px 18px;
    border: 1px dashed rgba(59, 130, 246, 0.35);
    border-radius: 50%;
}
.rioauth-mini-ia-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1d4ed8;
}
.rioauth-mini-ia-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rio-mint);
    box-shadow: 0 0 6px rgba(63, 184, 175, 0.45);
}
.rioauth-mini-ia-node.is-chart { top: 6px;  left: 50%; transform: translateX(-50%); }
.rioauth-mini-ia-node.is-radar { bottom: 10px; left: 16px; }
.rioauth-mini-ia-node.is-radio { bottom: 10px; right: 16px; }

/* ── Panel derecho: formulario ──────────────────────────────────── */
.rioauth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    background: var(--rio-bg);
}
.rioauth-form-inner {
    width: 100%;
    max-width: 420px;
}

.rioauth-welcome {
    font-size: 30px;
    font-weight: 800;
    color: var(--rio-teal);
    margin: 0 0 8px;
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.rioauth-subtitle {
    font-size: 15px;
    color: var(--rio-text-soft);
    margin: 0 0 28px;
    line-height: 1.5;
}
.rioauth-forgot-lead {
    font-size: 14px;
    color: var(--rio-text-soft);
    margin: 0 0 20px;
    line-height: 1.55;
}

/* ── Tabs ─────────────────────────────────────────────────────────── */
.rioauth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--rio-card-alt);
    padding: 4px;
    border-radius: 12px;
}
.rioauth-tab {
    flex: 1;
    padding: 11px 16px;
    background: transparent;
    color: var(--rio-text-soft);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.rioauth-tab:hover {
    color: var(--rio-teal);
}
.rioauth-tab.active {
    background: white;
    color: var(--rio-teal);
    box-shadow: var(--rio-shadow-sm);
}

/* ── Google Login Button ────────────────────────────────────────── */
.rioauth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: white;
    color: #3c4043;
    border: 1.5px solid var(--rio-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 18px;
    font-family: inherit;
}
.rioauth-google-btn:hover {
    border-color: var(--rio-mint);
    background: var(--rio-mint-soft);
    color: var(--rio-teal);
    transform: translateY(-1px);
    box-shadow: var(--rio-shadow-md);
}
.rioauth-google-icon {
    flex-shrink: 0;
}
.rioauth-guest-block {
    margin: 0 0 18px;
}
.rioauth-guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: var(--rio-teal, #0d6e6e);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.rioauth-guest-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--rio-shadow-md);
}
.rioauth-guest-btn:disabled,
.rioauth-guest-btn.loading {
    opacity: 0.7;
    cursor: wait;
}
.rioauth-guest-hint {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--rio-text-mute);
    text-align: center;
}
.rioauth-turnstile {
    display: flex;
    justify-content: center;
    margin: 0 0 10px;
    min-height: 65px;
}
.rioauth-divider {
    display: flex;
    align-items: center;
    margin: 0 0 22px;
    color: var(--rio-text-mute);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.rioauth-divider::before,
.rioauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rio-border);
}
.rioauth-divider span {
    padding: 0 14px;
}

/* ── Tarjetas de rol (Alumno / Academia) ──────────────────────── */
.rioauth-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.rioauth-role-card {
    display: block;
    padding: 18px 14px;
    background: white;
    border: 2px solid var(--rio-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.rioauth-role-card:hover {
    border-color: var(--rio-mint-light);
    transform: translateY(-1px);
    box-shadow: var(--rio-shadow-md);
}
.rioauth-role-card.active {
    border-color: var(--rio-mint);
    background: linear-gradient(180deg, white 0%, var(--rio-mint-soft) 100%);
    box-shadow: 0 0 0 4px rgba(63, 184, 175, 0.15);
}
.rioauth-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rioauth-role-icon {
    font-size: 26px;
    margin-bottom: 6px;
}
.rioauth-role-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--rio-teal);
    margin-bottom: 3px;
}
.rioauth-role-desc {
    font-size: 11px;
    color: var(--rio-text-soft);
    line-height: 1.35;
}

/* ── Campos del formulario ──────────────────────────────────────── */
.rioauth-field {
    margin-bottom: 16px;
}
.rioauth-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--rio-teal);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.rioauth-input {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--rio-border);
    border-radius: 10px;
    color: #0f2c3e;
    -webkit-text-fill-color: #0f2c3e;
    caret-color: #0f2c3e;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s;
}
.rioauth-input:hover {
    border-color: var(--rio-border-hi);
    background: #ffffff;
}
.rioauth-input:focus {
    outline: none;
    border-color: var(--rio-mint);
    background: #ffffff;
    color: #0f2c3e;
    -webkit-text-fill-color: #0f2c3e;
    box-shadow: 0 0 0 4px rgba(63, 184, 175, 0.18);
}
.rioauth-input::placeholder {
    color: #8895a3;
    -webkit-text-fill-color: #8895a3;
    opacity: 1;
}
.rioauth-input:-webkit-autofill,
.rioauth-input:-webkit-autofill:hover,
.rioauth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f2c3e !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ── Botón principal ────────────────────────────────────────────── */
.rioauth-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--rio-mint) 0%, var(--rio-mint-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(63, 184, 175, 0.3);
}
.rioauth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(63, 184, 175, 0.4);
}
.rioauth-submit:active {
    transform: translateY(0);
}
.rioauth-submit:disabled,
.rioauth-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.rioauth-submit.loading {
    position: relative;
    color: transparent;
}
.rioauth-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: rioSpin 0.7s linear infinite;
}
@keyframes rioSpin {
    to { transform: rotate(360deg); }
}

/* ── Mensajes de error / éxito ──────────────────────────────────── */
.rioauth-msg {
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.25s;
}
.rioauth-msg.show {
    padding: 11px 14px;
    margin: 14px 0;
    max-height: 200px;
    opacity: 1;
    border-radius: 8px;
}
.rioauth-msg.error {
    background: #FDECEC;
    color: #B33A3A;
    border: 1px solid #F5BCBC;
}
.rioauth-msg.success {
    background: #E6F7EE;
    color: #1F7D49;
    border: 1px solid #B7E4C7;
}

/* ── Toggle link "¿Ya tienes cuenta?" ───────────────────────────── */
.rioauth-toggle-link {
    text-align: center;
    font-size: 13px;
    color: var(--rio-text-soft);
    margin: 18px 0 0;
}
.rioauth-toggle-link a {
    color: var(--rio-mint);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.rioauth-toggle-link a:hover {
    text-decoration: underline;
    color: var(--rio-teal);
}

/* ── Pantalla "Completa tu perfil" tras Google ──────────────────── */
.rioauth-google-complete {
    animation: rioauthFadeIn 0.3s ease-out;
}
.rioauth-google-hello {
    background: var(--rio-mint-soft);
    border: 1px solid rgba(63, 184, 175, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rio-teal);
}
.rioauth-google-hello strong {
    color: var(--rio-mint);
    font-weight: 700;
}
@keyframes rioauthFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer del panel form (links discretos) ────────────────────── */
.rioauth-form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: var(--rio-text-mute);
}
.rioauth-form-footer a {
    color: var(--rio-text-soft);
    text-decoration: none;
    margin: 0 8px;
}
.rioauth-form-footer a:hover {
    color: var(--rio-mint);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE (tablet y móvil)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .rioauth-topbar {
        top: 16px;
        left: 20px;
        right: 20px;
        flex-wrap: wrap;
    }
    .rioauth-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .rioauth-lang-select {
        max-width: 110px;
    }
    .rioauth-grid {
        grid-template-columns: 1fr;
    }
    .rioauth-brand-panel {
        padding: 100px 30px 40px;
        min-height: auto;
    }
    .rioauth-brand-logo-img {
        width: 120px;
        height: 120px;
    }
    .rioauth-brand-title { font-size: 28px; }
    .rioauth-showcase { max-width: 360px; }
    .rioauth-showcase-panel { padding: 12px 10px; }
    .rioauth-showcase-visual { height: 52px; }
    .rioauth-form-panel {
        padding: 40px 24px 40px;
    }
    .rioauth-welcome { font-size: 24px; }
}

@media (max-width: 480px) {
    .rioauth-logo-text small { display: none; }
    .rioauth-brand-panel { padding: 80px 20px 30px; }
    .rioauth-showcase { grid-template-columns: 1fr 1fr; gap: 8px; max-width: 280px; }
    .rioauth-form-panel { padding: 30px 18px; }
    .rioauth-welcome { font-size: 22px; }
    .rioauth-subtitle { font-size: 14px; }
    .rioauth-roles { grid-template-columns: 1fr; }
}
