/* ===============================
   ESTILO GENERAL
================================*/
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f1f7ff, #ffffff);
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* ===============================
   SPLASH
================================*/
#splash {
    position: fixed;
    inset: 0;
    background: #e6f0ff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .6s ease;
}

.splash-inner {
    text-align: center;
    animation: fadeIn .8s ease;
}

.splash-icon {
    width: 90px;
    animation: pulse 1.5s infinite ease-in-out;
    margin-bottom: 12px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   CONTENEDOR LOGIN
================================*/
.login-wrapper {
    max-width: 420px;
    margin: 120px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.login-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    animation: cardFade .5s ease;
}

@keyframes cardFade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* IlustraciÃ³n */
.login-illustration {
    margin-bottom: 15px;
}

.bombilla-img {
    width: 95px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.login-title {
    font-size: 32px;
    margin: 0;
    font-weight: 800;
}

.login-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 22px;
}

/* Inputs */
input[type=email],
input[type=password] {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border .2s;
}

input:focus {
    border: 1px solid #3b82f6;
    outline: none;
}

/* BotÃ³n */
button {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

button:hover {
    background: #2563eb;
    transform: scale(1.03);
}

.hidden { display: none; }

/* Error */
.error-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 14px;
    border-radius: 12px;
    border-left: 6px solid #dc2626;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Crear cuenta */
.crear-cuenta {
    margin-top: 20px;
    font-size: 15px;
}

.crear-cuenta a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.crear-cuenta a:hover {
    text-decoration: underline;
}

/* Footer mini */
.footer-mini {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 12px;
}
/* ===========================================
   ESTILOS REGISTRO (hereda el estilo del login)
=========================================== */

.login-subtitle {
    text-align: center;
    font-size: 15px;
    margin-top: 5px;
    color: #475569;
}

/* Caja correcta */
.ok-box {
    background: #dcfce7;
    color: #166534;
    padding: 14px;
    border-left: 6px solid #16a34a;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Input */
input[type=email],
input[type=password] {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 16px;
    transition: .2s;
}

input[type=email]:focus,
input[type=password]:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

/* Bot¨®n */
button {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    border-radius: 12px;
    border: none;
    font-size: 17px;
    font-weight: 700;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: .2s;
}

button:hover {
    transform: scale(1.03);
    background: #2563eb;
}

/* Enlace inferior */
.crear-cuenta {
    margin-top: 20px;
    font-size: 15px;
}

.crear-cuenta a {
    color: #2563eb;
    font-weight: 700;
}
.crear-cuenta a:hover {
    text-decoration: underline;
}

/* Ilustraci¨®n */
.bombilla-img {
    font-size: 95px;
    margin-bottom: 10px;
    animation: bombilla .9s ease;
}

@keyframes bombilla {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

