
/* ==========================================
   BEZALEL CHURCH
   Bezalel Technologies
   Estilos del inicio de sesion
   ========================================== */

:root {
    --azul-marino: #0b192e;
    --azul-profundo: #14253c;
    --dorado: #d4af68;
    --dorado-claro: #ebcd94;
    --blanco: #ffffff;
    --texto-secundario: #aab8ca;
    --borde: #43516a;
    --error: #fca5a5;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--blanco);

    background:
        radial-gradient(
            ellipse at top,
            #203956 0%,
            var(--azul-marino) 65%
        );

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

/* CONTENEDOR PRINCIPAL */

.login-container {
    width: 100%;
    max-width: 440px;
    animation: aparecer 0.6s ease;
}

/* IDENTIDAD CORPORATIVA */

.identidad {
    text-align: center;
    margin-bottom: 30px;
}

.marca {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;

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

    border: 2px solid var(--dorado);
    border-radius: 20px;

    font-family: Georgia, serif;
    font-size: 52px;
    color: var(--dorado);

    background: rgba(212, 175, 104, 0.05);

    box-shadow:
        0 0 30px rgba(212, 175, 104, 0.08);
}

.identidad h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 5px;
    color: var(--dorado);
}

.identidad h2 {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 9px;
    color: var(--dorado);
    margin-top: 5px;
}

.eslogan {
    color: var(--texto-secundario);
    font-size: 13px;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* TARJETA DE AUTENTICACION */

.login-card {
    background: var(--azul-profundo);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 35px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    margin-bottom: 28px;
}

.login-header h2 {
    font-size: 27px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--texto-secundario);
    font-size: 14px;
    line-height: 1.6;
}

/* CAMPOS DEL FORMULARIO */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 9px;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--borde);
    border-radius: 9px;

    color: var(--blanco);
    font-family: inherit;
    font-size: 14px;

    outline: none;
    transition: border-color 0.2s,
                box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #91a0b5;
}

.form-group input:focus {
    border-color: var(--dorado);

    box-shadow:
        0 0 0 3px rgba(212, 175, 104, 0.12);
}

/* CAMPO DE CONTRASENA */

.password-container {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    color: var(--dorado);

    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
}

.toggle-password:hover {
    color: var(--dorado-claro);
}

/* BOTON DE INICIO DE SESION */

.btn-login {
    width: 100%;
    min-height: 50px;

    background: linear-gradient(
        135deg,
        var(--dorado-claro),
        var(--dorado)
    );

    border: none;
    border-radius: 9px;

    color: var(--azul-marino);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: transform 0.2s,
                box-shadow 0.2s;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 6px 20px rgba(212, 175, 104, 0.2);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button:focus-visible {
    outline: 2px solid var(--dorado-claro);
    outline-offset: 4px;
}

/* MENSAJES DEL SISTEMA */

.mensaje {
    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;

    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--error);
}

.mensaje.exito {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.mensaje[hidden] {
    display: none;
}

/* SEGURIDAD Y PIE DE PAGINA */

.seguridad {
    margin-top: 24px;
    text-align: center;
    color: var(--texto-secundario);
    font-size: 12px;
}

.footer {
    margin-top: 28px;
    text-align: center;
    color: var(--texto-secundario);
    font-size: 11px;
    line-height: 1.8;
}

/* ANIMACION DE ENTRADA */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* DISENO RESPONSIVO */

@media (max-width: 480px) {

    body {
        padding: 25px 16px;
    }

    .login-card {
        padding: 25px;
        border-radius: 18px;
    }

    .identidad h1 {
        font-size: 30px;
    }

    .marca {
        width: 65px;
        height: 65px;
        font-size: 42px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .form-group input {
        font-size: 16px;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
