/* =========================================
   AZE CRM — Login Styles (Responsive)
   Breakpoints:
     Escritorio : >= 769px  -> two columns side by side
     Tablet     : 481–768px -> stacked, banner top + form bottom
     Movil      : <= 480px  -> stacked, compact banner
   ========================================= */
 
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
html, body {
    height: 100%;
}
 
body {
    font-family: "Poppins", sans-serif;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}
 
.page-wrap {
    width: 100%;
    max-width: 860px;
}
 
.shell {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
    min-height: 520px;
}
 
/* ================================================
   PANEL IZQUIERDO — Branding
   ================================================ */
.left {
    width: 44%;
    background: #0e0f1a;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
 
.left-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
 
.left-top,
.left-bottom {
    position: relative;
    z-index: 1;
}
 
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}
 
.brand-icon {
    width: 34px;
    height: 34px;
    background: #6366f1;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
 
.brand-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
 
.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}
 
.brand-badge {
    font-size: 10px;
    font-weight: 400;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.18);
    border: 0.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.05em;
}
 
.tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
 
.tagline em {
    font-style: normal;
    color: #818cf8;
}
 
.tagline-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.65;
    max-width: 240px;
}
 
.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
 
.feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
}
 
.feat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    opacity: 0.7;
}
 
/* ================================================
   PANEL DERECHO — Formulario
   ================================================ */
.right {
    flex: 1;
    background: #fff;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
 
.right h1 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #111827;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}
 
.right-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 30px;
}
 
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 18px;
}
 
.field {
    margin-bottom: 16px;
}
 
.field label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}
 
.field input {
    width: 100%;
    height: 42px;
    border-radius: 9px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    padding: 0 13px;
    font-size: 13.5px;
    font-family: "Poppins", sans-serif;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
 
.field input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
 
.field input::placeholder {
    color: #9ca3af;
}
 
.field-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #b91c1c;
}
 
.captcha-wrap {
    margin: 6px 0 22px;
    min-height: 65px;
    display: flex;
    align-items: center;
}
 
.btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 9px;
    background: #6366f1;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
}
 
.btn:hover  { background: #4f46e5; }
.btn:active { transform: scale(0.99); }
 
.forgot {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
}
 
.forgot a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 400;
}
 
.forgot a:hover { text-decoration: underline; }
 
 
/* ================================================
   TABLET  —  481px a 768px
   Banner horizontal arriba + formulario abajo
   ================================================ */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 0;
        background: #0e0f1a;
    }
 
    .page-wrap {
        max-width: 100%;
    }
 
    .shell {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
 
    .left {
        width: 100%;
        padding: 32px 32px 28px;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        justify-content: flex-start;
    }
 
    .left-top { flex: 1; }
    .left-bottom { flex: 1; }
 
    .brand { margin-bottom: 16px; }
 
    .tagline {
        font-size: 20px;
        margin-bottom: 8px;
    }
 
    .tagline-sub {
        font-size: 12px;
        max-width: 100%;
    }
 
    .feat { font-size: 12px; }
 
    .right {
        flex: 1;
        border-radius: 20px 20px 0 0;
        padding: 36px 32px 40px;
        margin-top: -12px;
        position: relative;
        z-index: 1;
    }
}
 
 
/* ================================================
   MOVIL  —  <= 480px
   Banner compacto, formulario full-width
   ================================================ */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
 
    .left {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px 24px;
        gap: 0;
    }
 
    .left-top { width: 100%; }
 
    /* Ocultar features en movil para no saturar */
    .left-bottom { display: none; }
 
    .brand { margin-bottom: 14px; }
 
    .tagline {
        font-size: 18px;
        margin-bottom: 6px;
    }
 
    .tagline-sub {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.35);
    }
 
    .right {
        border-radius: 16px 16px 0 0;
        padding: 28px 24px 36px;
    }
 
    .right h1 { font-size: 20px; }
 
    .right-sub { margin-bottom: 24px; }
 
    /* Inputs mas altos para facilitar el toque */
    .field input {
        height: 46px;
        font-size: 16px; /* Evita zoom automatico en iOS */
    }
 
    .btn {
        height: 48px;
        font-size: 15px;
    }
 
    .captcha-wrap {
        margin: 4px 0 18px;
    }
}