/* =========================================
   LOGIN - SISTEMA CLÍNICO
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(
            135deg,
            rgba(7, 31, 61, 0.96),
            rgba(17, 74, 105, 0.90)
        ),
        url('privado/assets/img/login-bg.jpg') center center / cover no-repeat;
}

/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

/* =========================================
   FORMULARIO
   ========================================= */

.login-form {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 38px 35px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.10);
    animation: loginAppear 0.5s ease;
}

/* =========================================
   LOGO
   ========================================= */

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo i {
    width: 80px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.30);
}

.logo h2 {
    margin: 0;
    color: #1d2939;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* =========================================
   INPUT GROUP
   ========================================= */

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   INPUT / SELECT
   ========================================= */

.input-group input,
.input-group select {
    width: 100%;
    height: 52px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

/* Input */

.input-group input {
    padding: 0 48px;
}

/* Select */

.input-group select {
    padding: 0 42px 0 48px;
    appearance: none;
    cursor: pointer;
}

/* Flecha del select */

.input-group:first-child::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    pointer-events: none;
    font-size: 12px;
}

/* Placeholder */

.input-group input::placeholder {
    color: #98a2b3;
}

/* Focus */

.input-group input:focus,
.input-group select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

/* =========================================
   PASSWORD
   ========================================= */

.password-container input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #667085;
    cursor: pointer;
    border-radius: 7px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: #f2f4f7;
    color: #0d6efd;
}

.toggle-password:focus {
    outline: none;
}

/* =========================================
   BOTÓN LOGIN
   ========================================= */

.login-form form > button[type="button"] {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 9px;
    background: #0d6efd;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 5px 14px rgba(13, 110, 253, 0.25);
}

.login-form form > button[type="button"]:hover {
    background: #0b5ed7;
    box-shadow: 0 7px 18px rgba(13, 110, 253, 0.32);
}

.login-form form > button[type="button"]:active {
    transform: translateY(1px);
}

/* =========================================
   OPCIONES
   ========================================= */

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
    color: #667085;
}

.options label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.options a {
    color: #0d6efd;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* =========================================
   ANIMACIÓN
   ========================================= */

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 576px) {

    .login-container {
        padding: 20px 15px;
    }

    .login-form {
        max-width: 100%;
        padding: 30px 22px 28px;
        border-radius: 13px;
    }

    .logo {
        margin-bottom: 28px;
    }

    .logo i {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .logo h2 {
        font-size: 23px;
    }

    .input-group input,
    .input-group select,
    .login-form form > button[type="button"] {
        height: 50px;
    }
}

/* =========================================
   PANTALLAS MUY PEQUEÑAS
   ========================================= */

@media (max-height: 650px) {

    .login-container {
        padding: 15px;
    }

    .login-form {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo i {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 8px;
    }

    .input-group {
        margin-bottom: 14px;
    }
}