/* ================================================================
   Poliedro SRL — Staff Login — Tema Claro Moderno
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
input:focus { outline: none; border-color: #1e5aad !important; box-shadow: 0 0 0 3px rgba(30,90,173,0.12) !important; }

html { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    height: 100%;
    margin: 0;
    text-align: center;
    background: linear-gradient(160deg, #e8f0fe 0%, #f4f7ff 50%, #eaf0fd 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Patrón sutil */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(30,90,200,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(60,120,220,0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Quitar el canguro completamente */
#brickwall { display: none !important; }
#blur      { display: none !important; }
#background{ display: none !important; }

/* ---- CAJA LOGIN ---- */
#loginBox {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    z-index: 10;
    background: #ffffff !important;
    border: 1px solid #d6e0f5 !important;
    border-radius: 20px;
    padding: 44px 40px 36px;
    box-shadow: 0 8px 32px rgba(30,60,140,0.12), 0 2px 8px rgba(0,0,0,0.06);
    text-align: left;
}

/* ---- LOGO (Poliedro) ---- */
#logo {
    display: block;
    text-align: center;
    margin-bottom: 28px;
    height: auto !important;
    width: auto !important;
}
#logo a { display: inline-block; }
#logo img {
    height: 64px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
    vertical-align: middle !important;
    filter: none !important;
}
.valign-helper { display: none !important; }

/* Título */
#loginBox::before {
    content: 'Acceso al Sistema';
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

/* Mensaje de error/estado */
#login-message {
    font-size: 13px;
    color: #b91c1c;
    text-align: center;
    font-weight: 500;
    min-height: 18px;
    margin: 0 0 20px;
}
.banner {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---- FORM ---- */
fieldset { border: none; padding: 0; margin: 0; }

input[type="text"],
input[type="password"] {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #d0d9ef;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    color: #1a2744;
    font-family: 'Inter', sans-serif;
    margin-bottom: 14px;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="password"]:focus {
    background: #ffffff;
    border-color: #1e5aad;
}
input::placeholder { color: #9baac8; font-style: normal; }

/* Link reset contraseña */
h3 { margin: 0; padding: 0; }
#reset-link {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #1e5aad;
    text-decoration: none;
    margin: -8px 0 20px;
    line-height: 1.4;
    font-weight: 500;
}
#reset-link:hover { text-decoration: underline; }
#reset-link.hidden { display: none !important; }

/* Botón Login */
button.submit.button {
    width: 100%;
    background: linear-gradient(135deg, #1e5aad 0%, #1749a0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(30,90,173,0.30);
    transition: opacity 0.2s, transform 0.1s;
    display: block;
    margin-top: 8px;
}
button.submit.button:hover { opacity: 0.9; transform: translateY(-1px); }
button.submit.button:active { transform: translateY(0); }
button.submit.button i { margin-right: 8px; }
.pull-right { float: none !important; }

/* ---- SPINNER ---- */
#loading {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 20px 28px;
    color: #1a2744;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
#loading h1 { font-size: 14px; color: #1a2744; font-weight: 500; }

/* ---- COPYRIGHT / EMPRESA ---- */
#company {
    position: relative !important;
    left: auto !important; bottom: auto !important;
    width: 100% !important;
    margin: 24px 0 0 0 !important;
    font-size: 12px;
    text-align: center;
}
#company .content {
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    text-shadow: none !important;
    display: block !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ---- OCULTAR Powered by osTicket ---- */
#poweredBy { display: none !important; }

/* ---- AUTH EXTERNAS ---- */
.or { margin: 20px 0 16px; }
.or hr { border: none; border-top: 1px solid #e2e8f4; }
.external-auth { display: block; margin-bottom: 8px; }
a.external-sign-in { text-decoration: none; }
.external-auth-box {
    display: inline-flex; align-items: center; width: 100%;
    background: #f8fafc;
    border: 1.5px solid #d0d9ef !important;
    border-radius: 10px; cursor: pointer;
    transition: background 0.2s;
}
.external-auth-box:hover { background: #f0f4ff; }
.external-auth-icon { color: #374151; border-right: 1px solid #d0d9ef !important; }
.external-auth-name { color: #374151; }

.hidden { display: none !important; }
