/* ==========================================================================
   RUSH ACADEMY — Login Theme
   Basado en INSPINIA - Responsive Admin Theme
   Paleta: #372887 (primario oscuro) / #6959fb (primario claro)
   Degradado de marca: 30° entre ambos tonos
   Tipografía: Heebo (títulos) / Metrophobic (texto)
   ========================================================================== */

:root {
    --rush-primary-dark:  #372887;
    --rush-primary-light: #6959fb;
    --rush-primary-gradient: linear-gradient(30deg, #372887 0%, #6959fb 100%);
    --rush-ink:    #1f1636;
    --rush-muted:  #7b74a8;
    --rush-line:   rgba(55, 40, 135, 0.12);
    --rush-bg:     #f7f6fd;
    --rush-radius: 16px;
    --rush-shadow: 0 24px 60px -20px rgba(55, 40, 135, 0.45);
}

/* -------------------------------------------------------------------- */
/* Base                                                                  */
/* -------------------------------------------------------------------- */

.rush-login-body {
    background: var(--rush-bg);
    margin: 0;
    min-height: 100vh;
    font-family: 'Metrophobic', 'Helvetica Neue', Arial, sans-serif;
    color: var(--rush-ink);
}

.rush-login-body h1,
.rush-login-body h2,
.rush-login-body h3,
.rush-login-body h4,
.rush-login-body h5,
.rush-login-body .rush-wordmark,
.rush-login-body .rush-tagline-eyebrow {
    font-family: 'Heebo', 'Helvetica Neue', Arial, sans-serif;
}

.rush-login-wrap {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* -------------------------------------------------------------------- */
/* Panel de marca (izquierda)                                           */
/* -------------------------------------------------------------------- */

.rush-brand-panel {
    position: relative;
    flex: 0 0 44%;
    max-width: 44%;
    background: var(--rush-primary-gradient);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 64px;
}

.rush-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.rush-logo-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
}

.rush-logo-mark svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.rush-wordmark {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    margin: 0;
}

.rush-wordmark span {
    display: block;
    font-family: 'Metrophobic', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.rush-brand-headline {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.22;
    margin: 0 0 18px;
}

.rush-tagline {
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Metrophobic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.rush-tagline-eyebrow {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.85;
}

/* Motivo decorativo de nodos conectados (derivado del isotipo) */
.rush-node-motif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.rush-node-motif .rn-line {
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.4;
    fill: none;
}

.rush-node-motif .rn-ring {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2.4;
    fill: none;
}

.rush-node-motif .rn-dot {
    fill: rgba(255, 255, 255, 0.9);
}

.rush-node-motif .rn-dot-soft {
    fill: rgba(255, 255, 255, 0.35);
}

.rush-node-motif .rn-pulse {
    animation: rush-pulse 3.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.rush-node-motif .rn-pulse:nth-child(3n) { animation-delay: .6s; }
.rush-node-motif .rn-pulse:nth-child(3n+1) { animation-delay: 1.3s; }
.rush-node-motif .rn-pulse:nth-child(3n+2) { animation-delay: 2.1s; }

@keyframes rush-pulse {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rush-node-motif .rn-pulse { animation: none; }
}

.rush-brand-footer {
    position: relative;
    z-index: 2;
    margin-top: 64px;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------- */
/* Panel de formulario (derecha)                                        */
/* -------------------------------------------------------------------- */

.rush-form-panel {
    flex: 1 1 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.rush-form-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: var(--rush-radius);
    box-shadow: var(--rush-shadow);
    padding: 44px 40px 36px;
    animation: rush-rise .55s cubic-bezier(.22,1,.36,1) both;
}

@keyframes rush-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rush-form-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    display: block;
}

.rush-form-heading {
    text-align: center;
    margin-bottom: 30px;
}

.rush-form-heading h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--rush-ink);
    margin: 0 0 6px;
}

.rush-form-heading p {
    font-family: 'Metrophobic', sans-serif;
    font-size: 14px;
    color: var(--rush-muted);
    margin: 0;
}

/* Campos de formulario */
.rush-form-card .form-group {
    margin-bottom: 18px;
}

.rush-form-card .form-control {
    height: 48px;
    border: 1.5px solid var(--rush-line);
    border-radius: 10px;
    font-family: 'Metrophobic', sans-serif;
    font-size: 15px;
    padding: 0 16px;
    background: #fbfaff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rush-form-card .form-control:focus {
    border-color: var(--rush-primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(105, 89, 251, 0.15);
    outline: none;
}

.rush-form-card .form-control::placeholder {
    color: #a9a2cf;
}

.rush-form-card .invalid-feedback,
.rush-form-card .help-block {
    font-family: 'Metrophobic', sans-serif;
    font-size: 12.5px;
}

/* Checkbox "Recuérdame" */
.rush-form-card .magic-checkbox + label {
    font-family: 'Metrophobic', sans-serif;
    font-size: 14px;
    color: var(--rush-muted);
}

.rush-form-card .magic-checkbox:checked + label:before {
    background: var(--rush-primary-light);
    border-color: var(--rush-primary-light);
}

/* Botón principal */
.rush-form-card .btn-primary {
    background: var(--rush-primary-gradient);
    border: none;
    height: 48px;
    border-radius: 10px;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 24px -8px rgba(55, 40, 135, 0.55);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.rush-form-card .btn-primary:hover,
.rush-form-card .btn-primary:focus {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(55, 40, 135, 0.6);
}

.rush-form-card .btn-primary:active {
    transform: translateY(0);
}

/* Enlaces */
.rush-form-links {
    text-align: center;
    margin-top: 22px;
}

.rush-form-links a {
    font-family: 'Metrophobic', sans-serif;
    font-size: 13.5px;
    color: var(--rush-primary-light);
    text-decoration: none;
}

.rush-form-links a:hover {
    color: var(--rush-primary-dark);
    text-decoration: underline;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 900px) {
    .rush-login-wrap {
        flex-direction: column;
    }

    .rush-brand-panel {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 40px 32px;
        min-height: 240px;
    }

    .rush-brand-headline {
        font-size: 24px;
    }

    .rush-brand-footer {
        display: none;
    }

    .rush-form-panel {
        padding: 32px 20px 56px;
    }
}

@media (max-width: 420px) {
    .rush-form-card {
        padding: 34px 24px 28px;
    }
}