.login-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.12), transparent 22%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.10), transparent 24%),
        linear-gradient(135deg, #eaf6ff 0%, #f7fbff 45%, #eef8ff 100%);
}

body:not(.light-theme) {
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.16), transparent 22%),
        radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.14), transparent 24%),
        linear-gradient(135deg, #07111f 0%, #0b1728 50%, #0d1b2f 100%);
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* IZQUIERDA */
.login-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
    pointer-events: none;
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    bottom: -160px;
    right: 40px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
    pointer-events: none;
}

.login-hero__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
}

.login-hero__logo-wrap {
    margin-bottom: 26px;
}

.login-hero__logo {
    width: 100px;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-hero__title {
    margin: 0;
    line-height: 1.02;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.login-hero__title span {
    display: block;
    margin-top: 8px;
    color: #0ea5e9;
}

.login-hero__text {
    margin: 24px 0 0;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #fff;
}
body:not(.light-theme) .login-hero__title {
    color: #eff6ff;
}

body:not(.light-theme) .login-hero__title span {
    color: #38bdf8;
}

body:not(.light-theme) .login-hero__text {
    color: #94a3b8;
}

/* DERECHA */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(14, 165, 233, 0.14);
    border-radius: 28px;
    box-shadow:
        0 20px 50px rgba(14, 30, 60, 0.10),
        0 8px 18px rgba(14, 165, 233, 0.08);
    padding: 34px;
    position: relative;
}

body:not(.light-theme) .login-card {
    background: rgba(10, 18, 32, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.34),
        0 8px 18px rgba(14, 165, 233, 0.10);
}

.login-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.login-card__logo img {
    width: 74px;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-card__header {
    text-align: center;
    margin-bottom: 26px;
}

.login-card__header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.login-card__header p {
    margin: 0;
    color: #475569;
    font-size: 15px;
}

body:not(.light-theme) .login-card__header h2 {
    color: #eff6ff;
}

body:not(.light-theme) .login-card__header p {
    color: #94a3b8;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #dc2626;
    font-size: 14px;
    text-align: center;
}

body:not(.light-theme) .login-alert {
    color: #fca5a5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

body:not(.light-theme) .login-field label {
    color: #e2e8f0;
}

.login-field input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 56px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-field input:focus {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

body:not(.light-theme) .login-field input {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

body:not(.light-theme) .login-field input::placeholder {
    color: #64748b;
}

.login-submit {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.login-submit:active {
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 38vh;
        padding: 42px 24px 10px;
        text-align: center;
    }

    .login-hero__content {
        max-width: 720px;
    }

    .login-hero__logo {
        margin: 0 auto;
    }

    .login-hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .login-panel {
        padding: 20px 20px 40px;
    }
}

@media (max-width: 640px) {
    .login-hero {
        min-height: auto;
        padding: 28px 18px 8px;
    }

    .login-hero__logo {
        width: 72px;
    }

    .login-hero__title {
        font-size: 40px;
    }

    .login-hero__text {
        margin-top: 16px;
        font-size: 15px;
    }

    .login-panel {
        padding: 16px 16px 30px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .login-card__logo img {
        width: 60px;
    }

    .login-card__header h2 {
        font-size: 24px;
    }

    .login-field input,
    .login-submit {
        height: 52px;
    }
}