@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Manrope", sans-serif
}

/* =========================================================
   LOGIN - CONSULTORIO DENTAL GARMA
   ========================================================= */

.login-page {
    --login-primary: #0f9fae;
    --login-primary-dark: #087d8a;
    --login-primary-soft: #e8f8fa;
    --login-ink: #172b3a;
    --login-muted: #718096;
    --login-border: #e2eaf0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 15%,
            rgba(15, 159, 174, .12),
            transparent 30%),
        radial-gradient(circle at 90% 85%,
            rgba(24, 119, 210, .08),
            transparent 30%),
        linear-gradient(135deg,
            #f4fbfc 0%,
            #f8fbfd 45%,
            #eef8fa 100%);
}


/* Decoración sutil del fondo */

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.login-page::before {
    width: 420px;
    height: 420px;

    top: -220px;
    right: -180px;

    border: 70px solid rgba(15, 159, 174, .035);
}

.login-page::after {
    width: 350px;
    height: 350px;

    bottom: -200px;
    left: -180px;

    border: 60px solid rgba(24, 119, 210, .03);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.login-shell {
    width: 100%;
    max-width: 430px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   MARCA
   ========================================================= */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    margin-bottom: 26px;

    text-align: left;
}


/* Icono */

.login-brand .brand-mark {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    border-radius: 16px;

    display: grid;
    place-items: center;

    background: linear-gradient(145deg,
            var(--login-primary),
            var(--login-primary-dark));

    color: #fff;

    font-size: 27px;

    box-shadow:
        0 10px 25px rgba(15, 159, 174, .22),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}


/* Nombre */

.login-brand h1 {
    margin: 0;

    color: var(--login-ink);

    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.4px;
}


/* Subtítulo */

.login-brand p {
    margin: 4px 0 0;

    color: var(--login-muted);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .2px;
}


/* =========================================================
   CARD
   ========================================================= */

.login-card {
    background: rgba(255, 255, 255, .96);

    border: 1px solid rgba(226, 234, 240, .9);

    border-radius: 22px;

    padding: 36px;

    box-shadow:
        0 25px 70px rgba(31, 74, 92, .10),
        0 4px 15px rgba(31, 74, 92, .04);

    backdrop-filter: blur(10px);
}


/* =========================================================
   ENCABEZADO DEL LOGIN
   ========================================================= */

.login-card>.text-center {
    margin-bottom: 30px !important;
}

.login-card h2 {
    margin: 0 0 7px;

    color: var(--login-ink);

    font-family: "Manrope", sans-serif;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -.5px;
}

.login-card .text-muted {
    margin: 0;

    color: var(--login-muted) !important;

    font-size: 12px;
}


/* =========================================================
   LABELS
   ========================================================= */

.login-card .form-label {
    display: block;

    margin-bottom: 8px;

    color: #405466;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .1px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input-icon {
    position: relative;
}


/* Icono */

.input-icon>i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: #94a6b4;

    font-size: 17px;

    transition:
        color .2s ease,
        transform .2s ease;
}


/* Input */

.input-icon .form-control {
    width: 100%;

    height: 48px;

    padding:
        0 15px 0 44px;

    border: 1px solid var(--login-border);

    border-radius: 11px;

    background: #fbfdfe;

    color: var(--login-ink);

    font-size: 13px;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Placeholder */

.input-icon .form-control::placeholder {
    color: #aab6c0;
}


/* Hover */

.input-icon .form-control:hover {
    border-color: #cbdbe2;
}


/* Focus */

.input-icon .form-control:focus {
    border-color: var(--login-primary);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(15, 159, 174, .10);
}


/* Cambiar icono al enfocar */

.input-icon:focus-within>i {
    color: var(--login-primary);

    transform:
        translateY(-50%) scale(1.05);
}


/* =========================================================
   BOTÓN
   ========================================================= */

.login-card .btn-primary {
    height: 49px;

    border: 0;

    border-radius: 11px;

    background: linear-gradient(135deg,
            var(--login-primary),
            var(--login-primary-dark));

    color: #fff;

    font-family: "DM Sans", sans-serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .1px;

    box-shadow:
        0 8px 20px rgba(15, 159, 174, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


/* Hover */

.login-card .btn-primary:hover {
    background: linear-gradient(135deg,
            #11aab9,
            #087d8a);

    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(15, 159, 174, .26);
}


/* Active */

.login-card .btn-primary:active {
    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(15, 159, 174, .18);
}


/* Flecha */

.login-card .btn-primary i {
    font-size: 14px;

    transition: transform .2s ease;
}

.login-card .btn-primary:hover i {
    transform: translateX(3px);
}


/* =========================================================
   DEMO
   ========================================================= */

.demo-credentials {
    margin-top: 22px;

    padding: 12px 14px;

    border: 1px solid #e5edf1;

    border-radius: 11px;

    background: #f7fafb;

    color: #7a8995;

    text-align: center;

    font-size: 10px;

    line-height: 1.6;
}

.demo-credentials strong {
    display: inline-block;

    margin-bottom: 2px;

    color: #526775;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;
}

.demo-credentials code {
    padding: 2px 5px;

    border-radius: 5px;

    background: var(--login-primary-soft);

    color: var(--login-primary-dark);

    font-family: "DM Sans", sans-serif;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin: 18px 0 0;

    color: #9aa9b4;

    text-align: center;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   ALERTAS
   ========================================================= */

#loginAlert {
    margin-bottom: 18px;
}

#loginAlert .alert {
    border: 0;

    border-radius: 10px;

    font-size: 11px;
}


/* =========================================================
   VALIDACIÓN
   ========================================================= */

.login-card .form-control.is-invalid {
    border-color: #dc6b6b;

    background-image: none;

    box-shadow:
        0 0 0 3px rgba(220, 107, 107, .08);
}

.login-card .form-control.is-valid {
    border-color: #42ad86;

    background-image: none;

    box-shadow:
        0 0 0 3px rgba(66, 173, 134, .08);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575px) {

    .login-page {
        padding: 22px 16px;
    }

    .login-shell {
        max-width: 410px;
    }

    .login-brand {
        margin-bottom: 21px;
    }

    .login-brand .brand-mark {
        width: 48px;
        height: 48px;

        flex-basis: 48px;

        border-radius: 14px;

        font-size: 24px;
    }

    .login-brand h1 {
        font-size: 18px;
    }

    .login-brand p {
        font-size: 10px;
    }

    .login-card {
        padding: 27px 22px;

        border-radius: 18px;
    }

    .login-card h2 {
        font-size: 22px;
    }

    .login-card>.text-center {
        margin-bottom: 25px !important;
    }
}


@media (max-width: 360px) {

    .login-page {
        padding: 18px 12px;
    }

    .login-brand {
        gap: 9px;
    }

    .login-brand h1 {
        font-size: 16px;
    }

    .login-brand .brand-mark {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 22px;
    }

    .login-card {
        padding: 24px 18px;
    }
}


/* =========================================================
   REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .login-card .btn-primary,
    .login-card .btn-primary i,
    .input-icon>i,
    .input-icon .form-control {
        transition: none;
    }
}