:root {
    --auth-bg: #0f172a;
    --auth-bg-soft: #111827;
    --auth-card: #ffffff;
    --auth-primary: #1e3a8a;
    --auth-primary-hover: #172f72;
    --auth-accent: #334155;
    --auth-text: #111827;
    --auth-muted: #64748b;
    --auth-border: #e5e7eb;
    --auth-danger-bg: #fef2f2;
    --auth-danger-border: #fecaca;
    --auth-danger-text: #991b1b;
    --auth-success-bg: #ecfdf5;
    --auth-success-border: #bbf7d0;
    --auth-success-text: #166534;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.sigop-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 32%),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #1e293b 100%);
}

/* ==============================
   CONTENEDOR GENERAL
============================== */

.sigop-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
}

.sigop-auth-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    right: -160px;
    top: -180px;
}

.sigop-auth-page::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    left: -140px;
    bottom: -160px;
}

.sigop-auth-shell {
    width: 100%;
    max-width: 1080px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(12px);
}

/* ==============================
   PANEL INSTITUCIONAL IZQUIERDO
============================== */

.sigop-auth-info {
    padding: 54px 50px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.82)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 34%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 590px;
}

.sigop-auth-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo izquierdo CON marco blanco */
.sigop-auth-logo-box {
    width: 98px;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.sigop-auth-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sigop-auth-company h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sigop-auth-company p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 15px;
}

.sigop-auth-message {
    margin-top: 54px;
}

.sigop-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    white-space: nowrap;
}

.sigop-auth-message h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sigop-auth-message p {
    max-width: 480px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.65;
}

.sigop-auth-footer-info {
    margin-top: 48px;
    display: grid;
    gap: 12px;
}

.sigop-auth-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 14px;
}

.sigop-auth-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.14);
    flex-shrink: 0;
}

/* ==============================
   PANEL DERECHO / FORMULARIO
============================== */

.sigop-auth-form-side {
    background: #f8fafc;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sigop-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.sigop-auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

/* Logo del formulario SIN marco y más grande */
.sigop-auth-card-logo {
    width: 122px;
    height: 122px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sigop-auth-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sigop-auth-card-header h3 {
    margin: 0;
    color: var(--auth-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sigop-auth-card-header .sigop-subtitle {
    margin: 6px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.sigop-auth-card-header .sigop-system-name {
    margin: 18px 0 0;
    color: var(--auth-primary);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.sigop-auth-card-header .sigop-system-desc {
    margin: 5px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
}

/* ==============================
   ALERTAS
============================== */

.sigop-auth-alert {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 18px;
}

.sigop-auth-alert-danger {
    background: var(--auth-danger-bg);
    border: 1px solid var(--auth-danger-border);
    color: var(--auth-danger-text);
}

.sigop-auth-alert-success {
    background: var(--auth-success-bg);
    border: 1px solid var(--auth-success-border);
    color: var(--auth-success-text);
}

.sigop-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ==============================
   FORMULARIO
============================== */

.sigop-auth-form-group {
    margin-bottom: 18px;
}

.sigop-auth-label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.sigop-auth-control {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--auth-text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sigop-auth-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.sigop-auth-control::placeholder {
    color: #9ca3af;
}

.sigop-auth-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--auth-primary), #0f172a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    box-shadow: 0 14px 26px rgba(30, 58, 138, 0.25);
}

.sigop-auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(30, 58, 138, 0.30);
}

.sigop-auth-button:active {
    transform: translateY(0);
}

/* ==============================
   TEXTOS INFERIORES
============================== */

.sigop-auth-help {
    margin-top: 18px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.sigop-auth-version {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
}

/* ==============================
   RESPONSIVE TABLET
============================== */

@media (max-width: 992px) {
    .sigop-auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .sigop-auth-info {
        min-height: auto;
        padding: 34px;
    }

    .sigop-auth-message {
        margin-top: 30px;
    }

    .sigop-auth-message h2 {
        font-size: 32px;
    }

    .sigop-auth-footer-info {
        margin-top: 30px;
    }

    .sigop-auth-form-side {
        padding: 30px;
    }
}

/* ==============================
   RESPONSIVE CELULAR
============================== */

@media (max-width: 576px) {
    .sigop-auth-page {
        padding: 18px 12px;
        align-items: stretch;
    }

    .sigop-auth-shell {
        border-radius: 22px;
    }

    .sigop-auth-info {
        padding: 26px 22px;
    }

    .sigop-auth-brand {
        align-items: flex-start;
        gap: 14px;
    }

    .sigop-auth-logo-box {
        width: 82px;
        height: 82px;
        padding: 11px;
        border-radius: 20px;
    }

    .sigop-auth-company h1 {
        font-size: 28px;
    }

    .sigop-auth-company p {
        font-size: 13px;
    }

    .sigop-auth-badge {
        font-size: 12px;
        padding: 7px 12px;
    }

    .sigop-auth-message h2 {
        font-size: 28px;
    }

    .sigop-auth-message p {
        font-size: 14px;
    }

    .sigop-auth-footer-item {
        align-items: flex-start;
        font-size: 13px;
    }

    .sigop-auth-form-side {
        padding: 18px;
    }

    .sigop-auth-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .sigop-auth-card-logo {
        width: 104px;
        height: 104px;
        border-radius: 0;
        margin-bottom: 12px;
    }

    .sigop-auth-card-header h3 {
        font-size: 26px;
    }

    .sigop-auth-version {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}