/* Login split: marca (izquierda) + formulario (derecha), inspiración RiskSphere */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --rs-navy: #0f172a;
    --rs-navy-mid: #1e3a5f;
    --rs-blue: #2563eb;
    --rs-blue-btn: #1d4ed8;
    --rs-blue-btn-hover: #1e40af;
    --rs-grey-100: #f3f4f6;
    --rs-grey-500: #6b7280;
    --rs-grey-700: #374151;
    --rs-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.login-page.rs-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--rs-white);
    color: var(--rs-navy);
}

.rs-login-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* Panel marca (izquierda) */
.rs-login-brand {
    flex: 1 1 50%;
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: linear-gradient(155deg, #172554 0%, var(--rs-navy-mid) 42%, #0f172a 100%);
    overflow: hidden;
}

.rs-login-brand__noise {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.rs-login-brand__glow {
    position: absolute;
    width: 140%;
    height: 80%;
    left: -20%;
    top: 10%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.35) 0%, transparent 55%);
    pointer-events: none;
}

.rs-login-brand__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
}

.rs-login-shield-lg {
    width: min(42vw, 200px);
    height: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto 28px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.rs-login-brand__name {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--rs-white);
    text-transform: uppercase;
    line-height: 1.2;
}

/* Panel formulario (derecha) */
.rs-login-form-panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 48px;
    background: var(--rs-white);
}

.rs-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--rs-white);
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.rs-login-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rs-login-shield-sm {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #1e40af, #1e3a8a);
    padding: 6px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.35);
}

.rs-login-shield-sm img,
.rs-login-shield-sm svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rs-login-card__brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rs-navy);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.rs-login-card__sub {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    color: var(--rs-grey-500);
    font-weight: 500;
}

.rs-login-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

.rs-login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.rs-login-alert--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.rs-login-field {
    margin-bottom: 18px;
}

.rs-login-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--rs-grey-700);
    margin-bottom: 8px;
}

.rs-login-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rs-grey-100);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rs-login-input-wrap:focus-within {
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: var(--rs-white);
}

.rs-login-input-wrap svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.rs-login-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--rs-navy);
    outline: none;
}

.rs-login-input-wrap input::placeholder {
    color: #9ca3af;
}

.rs-login-row-link {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 20px;
}

.rs-login-row-link a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rs-blue);
    text-decoration: none;
}

.rs-login-row-link a:hover {
    text-decoration: underline;
    color: var(--rs-blue-btn-hover);
}

.rs-login-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--rs-white);
    background: var(--rs-blue-btn);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.rs-login-submit:hover {
    background: var(--rs-blue-btn-hover);
}

.rs-login-submit:active {
    transform: scale(0.99);
}

.rs-login-remember {
    margin-top: 18px;
    font-size: 0.8125rem;
    color: var(--rs-grey-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--rs-blue-btn);
}

.rs-login-signup {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--rs-grey-500);
}

.rs-login-signup a {
    color: var(--rs-blue);
    font-weight: 600;
    text-decoration: none;
}

.rs-login-signup a:hover {
    text-decoration: underline;
}

.rs-login-card__foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.rs-login-card__foot a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.rs-login-card__foot a:hover {
    color: var(--rs-blue);
}

.rs-login-card__foot span {
    margin: 0 8px;
    color: #d1d5db;
}

.rs-login-page-copy {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

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

    .rs-login-brand {
        min-height: 240px;
        padding: 36px 24px;
    }

    .rs-login-shield-lg {
        width: min(36vw, 160px);
        margin-bottom: 20px;
    }
}
