* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
}

body.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 45%, #0b1220 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.login-bg-1 {
    width: 320px;
    height: 320px;
    top: -90px;
    left: -90px;
    background: #2563eb;
}

.login-bg-2 {
    width: 340px;
    height: 340px;
    right: -110px;
    bottom: -110px;
    background: #7c3aed;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.login-topbar {
    margin-bottom: 24px;
}

.login-subtitle{
    margin: 6px 0 20px 0;
    text-align: center;
}

.login-header {
    margin-bottom: 24px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
}

.login-header p {
    margin: 0;
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.5;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    font-size: 14px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.login-field input {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-field input:focus {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 56px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.login-submit {
    height: 54px;
    border: none;
    border-radius: 16px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.42);
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 640px) {
    .login-card {
        padding: 24px;
        border-radius: 20px;
    }

    .login-logo-image,
    .login-logo-fallback {
        width: 76px;
        height: 76px;
    }

    .login-header h2 {
        font-size: 26px;
    }
}

.login-brand-mark{
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.login-brand-image{
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
}

.login-subtitle{
    text-align: center;
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.login-header{
    text-align: center;
    margin-bottom: 22px;
}

.login-header h2{
    margin: 0 0 8px 0;
}

.login-header p{
    margin: 0;
}

body.login-body::before{
    content: none !important;
    background: none !important;
}

/* ===== LOGO LIMPIO Y GRANDE ===== */

.login-brand-mark{
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

/* LOGO GRANDE */
.login-brand-mark img{
    width: 190px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}

/* hover suave (opcional pero top) */
.login-brand-mark img:hover{
    transform: scale(1.05);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6));
}

/* */
.login-brand-mark,
.login-brand-mark img{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}