/* =========================================
   SGAI
   Sistema de Gestión de Activos e Identidades
   ========================================= */


/* ---------- CONFIGURACIÓN GENERAL ---------- */

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #1e3a5f 0%,
            #0f172a 45%,
            #020617 100%
        );

    color: #ffffff;
}


/* ---------- CONTENEDOR PRINCIPAL ---------- */

.login-container {
    min-height: 100vh;

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

    padding: 30px;
}


/* ---------- TARJETA DE LOGIN ---------- */

.login-card {

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

    padding: 45px 40px 30px;

    background: rgba(15, 23, 42, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(10px);
}


/* ---------- LOGO ---------- */

.logo-container {
    display: flex;
    justify-content: center;

    margin-bottom: 25px;
}

.logo {

    width: 82px;
    height: 82px;

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

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #0ea5e9
    );

    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        0 10px 30px rgba(37, 99, 235, 0.35);
}


/* ---------- TÍTULOS ---------- */

h1 {

    text-align: center;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 0.3px;
}

h2 {

    text-align: center;

    font-size: 20px;

    font-weight: 400;

    color: #94a3b8;

    margin-top: 4px;
}

.subtitle {

    text-align: center;

    color: #64748b;

    font-size: 14px;

    margin-top: 12px;

    margin-bottom: 32px;
}


/* ---------- CAMPOS ---------- */

.input-group {

    margin-bottom: 22px;
}

.input-group label {

    display: block;

    margin-bottom: 8px;

    color: #cbd5e1;

    font-size: 14px;

    font-weight: 600;
}

.input-group input {

    width: 100%;

    height: 48px;

    padding: 0 15px;

    border-radius: 9px;

    border: 1px solid #334155;

    background: #0f172a;

    color: #ffffff;

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}

.input-group input::placeholder {
    color: #64748b;
}

.input-group input:focus {

    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* ---------- CONTRASEÑA ---------- */

.password-container {

    position: relative;
}

.password-container input {

    padding-right: 50px;
}

.toggle-password {

    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 17px;

    border-radius: 7px;

    transition: 0.2s;
}

.toggle-password:hover {

    background: rgba(255, 255, 255, 0.08);
}


/* ---------- OPCIONES ---------- */

.options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 5px;

    margin-bottom: 25px;

    font-size: 13px;
}

.remember {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #94a3b8;

    cursor: pointer;
}

.remember input {

    accent-color: #2563eb;

    cursor: pointer;
}

.forgot-password {

    color: #60a5fa;

    text-decoration: none;

    transition: 0.2s;
}

.forgot-password:hover {

    color: #93c5fd;

    text-decoration: underline;
}


/* ---------- BOTÓN ---------- */

.login-button {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #0284c7
    );

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.login-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.35);
}

.login-button:active {

    transform: translateY(0);
}


/* ---------- MENSAJE ---------- */

.message {

    display: none;

    margin-top: 18px;

    padding: 12px;

    border-radius: 8px;

    background: rgba(59, 130, 246, 0.10);

    border: 1px solid rgba(59, 130, 246, 0.20);

    color: #93c5fd;

    font-size: 13px;

    text-align: center;
}

.message.show {
    display: block;
}


/* ---------- PIE ---------- */

footer {

    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;
}

footer p {

    font-size: 13px;

    font-weight: 700;

    color: #94a3b8;
}

footer span {

    display: block;

    margin-top: 4px;

    font-size: 11px;

    color: #475569;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 500px) {

    .login-container {
        padding: 20px;
    }

    .login-card {
        padding: 35px 25px 25px;
    }

    .options {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

}