/* ============================================================
   StockIn - Estilos de la página de Login
   ============================================================ */

body.login-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box; /* evita desbordamiento lateral */
}

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

.login-logo-icono {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: #fff;
}

.login-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.login-subtitulo {
    font-size: .85rem;
    color: #64748b;
}

.form-grupo {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.input-icono {
    position: relative;
}

.input-icono i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .9rem;
}

.form-control {
    width: 100%;
    box-sizing: border-box; /* CRÍTICO: evita que el padding cause desbordamiento */
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: .9rem;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.btn-login {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-family: inherit;
}

.btn-login:hover { opacity: .92; }
.btn-login:active { transform: scale(.99); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

.login-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    margin-bottom: 16px;
    display: none;
}

.login-error.visible { display: flex; align-items: center; gap: 8px; }

.login-version {
    text-align: center;
    font-size: .72rem;
    color: #9ca3af;
    margin-top: 24px;
}
