:root{
    --dy-login-bg-1: #f7fbfe;
    --dy-login-bg-2: #eef4f8;

    --dy-login-card-bg: rgba(255,255,255,.94);
    --dy-login-card-border: rgba(148,163,184,.18);

    --dy-login-shadow: 0 28px 70px rgba(15,23,42,.12);

    --dy-login-text: #0f172a;
    --dy-login-soft: #64748b;
    --dy-login-link: #437EA6;

    --dy-primary-500: #437EA6;
    --dy-primary-600: #376b8f;
}

html,
body{
    min-height: 100%;
}

body{
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--dy-login-text);

    background:
        radial-gradient(circle at top left, rgba(67,126,166,.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(67,126,166,.08), transparent 30%),
        linear-gradient(180deg, var(--dy-login-bg-1) 0%, var(--dy-login-bg-2) 100%);
}

/* WRAPPER */

.dy-auth{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 20px;
    box-sizing: border-box;
}

/* CARD */

.dy-auth-card{
    position: relative;

    width: 100%;
    max-width: 520px;

    padding: 34px 34px 28px;

    border-radius: 30px;
    background: var(--dy-login-card-bg);
    border: 1px solid var(--dy-login-card-border);

    box-shadow: var(--dy-login-shadow);
    backdrop-filter: blur(10px);

    overflow: hidden;
}

.dy-auth-card::before{
    content: '';
    position: absolute;

    top: -120px;
    right: -120px;

    width: 240px;
    height: 240px;

    border-radius: 999px;

    background: radial-gradient(circle, rgba(67,126,166,.16), transparent 70%);

    pointer-events: none;
}

/* BRAND */

.dy-brand{
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.dy-brand img{
    width: 240px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* TITLES */

.dy-auth-title{
    margin: 0 0 24px;

    text-align: center;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;

    color: #1e293b;
}

.dy-auth-subtitle{
    margin: 0 0 26px;

    text-align: center;

    color: var(--dy-login-soft);

    font-size: 14px;
    line-height: 1.6;
}

/* ALERTA SESIÓN EXPIRADA */

.login-alert{
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin: 2px 0 24px;
    padding: 16px 18px;

    border-radius: 22px;
    border: 1px solid rgba(67,126,166,.24);

    background:
        radial-gradient(circle at top left, rgba(67,126,166,.14), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,248,252,.96));

    box-shadow:
        0 18px 38px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.90);

    overflow: hidden;
}

.login-alert::before{
    content: '!';

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: linear-gradient(135deg, var(--dy-primary-500), #5b9bc6);

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 10px 24px rgba(67,126,166,.28);
}

.login-alert__title{
    display: block;

    margin: 2px 0 4px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;

    color: #0f172a;
}

.login-alert__title::before{
    content: none;
}

.login-alert__text{
    display: block;

    max-width: 100%;

    font-size: 14px;
    line-height: 1.58;
    font-weight: 500;

    color: #475569;
}

/* FORM */

.dy-form-group{
    margin-bottom: 18px;
}

.dy-label{
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #334155;
}

.dy-label-row{
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 8px;
}

.dy-link{
    font-size: 14px;
    color: var(--dy-login-link);
    text-decoration: none;
    transition: opacity .18s ease;
}

.dy-link:hover{
    opacity: .82;
}

/* INPUTS */

.dy-input-wrap{
    position: relative;
}

.dy-input{
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid #d7deea;
    border-radius: 18px;

    background: rgba(255,255,255,.96);

    font-size: 16px;
    color: #0f172a;

    outline: none;
    box-sizing: border-box;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.dy-input::placeholder{
    color: #94a3b8;
}

.dy-input:hover{
    border-color: #c9d4e4;
}

.dy-input:focus{
    border-color: var(--dy-primary-500);
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(67,126,166,.14),
        0 10px 30px rgba(67,126,166,.08);
}

.dy-input-wrap-password{
    position: relative;
}

.dy-input-wrap-password .dy-input{
    padding-right: 50px;
}

/* PASSWORD TOGGLE */

.dy-password-toggle{
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    border: 0;
    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transition:
        color .18s ease,
        transform .15s ease;
}

.dy-password-toggle:hover{
    color: #64748b;
    transform: translateY(-50%) scale(1.06);
}

.dy-password-toggle svg{
    width: 20px;
    height: 20px;
}

/* BUTTON */

.dy-btn{
    width: 100%;
    height: 56px;

    border: 0;

    border-radius: 18px 18px 10px 18px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .20s ease,
        background .20s ease,
        opacity .20s ease;
}

.dy-btn:active{
    transform: translateY(1px);
}

.dy-btn-primary{
    background: linear-gradient(135deg, var(--dy-primary-500), #5b9bc6);
    color: #ffffff;

    box-shadow: 0 14px 32px rgba(67,126,166,.24);
}

.dy-btn-primary:hover:not(:disabled){
    background: linear-gradient(135deg, var(--dy-primary-600), var(--dy-primary-500));
    box-shadow: 0 18px 38px rgba(67,126,166,.30);
}

.dy-btn-primary:disabled{
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

/* FOOTER */

.dy-auth-footer{
    margin-top: 18px;

    text-align: center;

    font-size: 13px;

    color: var(--dy-login-soft);
}

/* MOBILE */

@media (max-width: 520px){

    .dy-auth{
        padding: 18px;
    }

    .dy-auth-card{
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .dy-brand img{
        width: 220px;
    }

    .dy-auth-title{
        font-size: 24px;
        margin-bottom: 22px;
    }

    .login-alert{
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .login-alert::before{
        flex-basis: 36px;
        width: 36px;
        height: 36px;

        border-radius: 12px;

        font-size: 18px;
    }

    .login-alert__title{
        font-size: 14px;
    }

    .login-alert__text{
        font-size: 13px;
        line-height: 1.55;
    }

    .dy-label-row{
        flex-direction: column;
        align-items: flex-start;
    }
}