* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7faff;
    color: #0f172a;
}

.dashboard {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #dbeafe;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 34px;
}

.brand-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    padding: 15px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 700;
    transition: 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
    background: #eaf2ff;
    color: #0b5ed7;
}

.status-box {
    margin-top: auto;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 22px;
    padding: 18px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-row p {
    margin: 5px 0 0;
    color: #059669;
    font-weight: 700;
}

.status-dot,
.ia-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.ia-dot {
    background: #0ea5e9;
}

.status-divider {
    margin: 16px 0;
    border-top: 1px solid #d1fae5;
}

/* MAIN */

.main-content {
    flex: 1;
    padding: 30px 34px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 24px;
}

.top-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
    color: #0f2c67;
}

.top-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.user-chip {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbeafe;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.user-chip strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.user-chip span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) 320px;
    gap: 26px;
}

/* CHAT COLUMN */

.chat-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.access-banner {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.access-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: #eaf2ff;
}

.access-banner strong {
    display: block;
    font-size: 16px;
    color: #0f2c67;
}

.access-banner p {
    margin: 5px 0 0;
    color: #64748b;
}

.logout-link {
    margin-left: auto;
    color: #0b5ed7;
    text-decoration: none;
    font-weight: 700;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-btn {
    border: 1px solid #bfdbfe;
    background: #ffffff;
    color: #0b5ed7;
    border-radius: 18px;
    padding: 16px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.quick-btn:hover {
    background: #eaf2ff;
}

/* PANEL CHAT */

.chat-panel {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 330px);
    min-height: 520px;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 6px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf2ff;
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.bubble {
    max-width: 72%;
    border-radius: 22px;
    padding: 16px 18px;
    line-height: 1.55;
    font-size: 15px;
    white-space: pre-line;
}

.bot-bubble {
    background: #f4f7fb;
    border: 1px solid #dbeafe;
    color: #0f172a;
}

.bot-bubble p {
    margin: 8px 0 0;
}

.user-bubble {
    background: linear-gradient(135deg, #0b5ed7, #1d4ed8);
    color: white;
}

.composer {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: #ffffff;
}

.composer input {
    flex: 1;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 17px;
    font-size: 15px;
    outline: none;
}

.composer input:focus {
    border-color: #0b5ed7;
}

.composer button {
    border: none;
    background: #0b5ed7;
    color: #ffffff;
    border-radius: 18px;
    padding: 0 28px;
    font-weight: 800;
    cursor: pointer;
}

.composer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* RIGHT PANEL */

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.info-card h3 {
    margin: 0 0 18px;
    color: #0f2c67;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-weight: 700;
    color: #334155;
}

.check-row span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 14px;
}

.suggestion {
    width: 100%;
    text-align: left;
    padding: 14px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    color: #1e3a8a;
    font-weight: 700;
    cursor: pointer;
}

.suggestion:first-of-type {
    border-top: none;
}

.support p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 22px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-chip {
        width: 100%;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}


.login-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    margin-bottom: 22px;
}


/* =========================================================
   LOGIN - CHATBOT IPESA
   Compatible con tu login.html actual
   ========================================================= */

.layout {
    min-height: 100vh;
    display: flex;
    background: #f7faff;
}

/* Sidebar del login */

.layout .sidebar {
    width: 300px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #dbeafe;
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
}

.layout .brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 42px;
}

.layout .login-logo {
    width: 230px;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.layout .brand h2 {
    margin: 0;
    font-size: 23px;
    color: #0f2c67;
}

.layout .brand p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

/* Navegación del login */

.layout nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layout nav a {
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s ease;
}

.layout nav a.active {
    background: #eaf2ff;
    color: #0b5ed7;
}

.layout nav a:hover {
    background: #f1f5ff;
    color: #0b5ed7;
}

/* Tarjeta inferior del sidebar */

.status-card {
    margin-top: auto;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-card .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.status-card strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.status-card p {
    margin: 5px 0 0;
    color: #059669;
    font-size: 14px;
    font-weight: 700;
}

/* Área central */

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

/* Card del login */

.login-card {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 34px;
    padding: 46px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

/* Badge */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b5ed7;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Títulos */

.login-card h1 {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.15;
    color: #0f2c67;
}

.subtitle {
    margin: 0 0 30px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

/* Formulario */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form label {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    margin-bottom: -8px;
}

.login-form input {
    width: 100%;
    padding: 18px 18px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    background: #ffffff;
    transition: 0.2s ease;
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form input:focus {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

/* Botón */

.login-form button {
    margin-top: 8px;
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b5ed7, #1d4ed8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(11, 94, 215, 0.24);
}

/* Error */

.error {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
}

/* Caja inferior */

.info-box {
    margin-top: 30px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

.info-box strong {
    display: block;
    color: #0f2c67;
    font-size: 15px;
    margin-bottom: 8px;
}

.info-box p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

/* Responsive login */

@media (max-width: 1000px) {
    .layout .sidebar {
        display: none;
    }

    .main {
        padding: 28px;
    }

    .login-card {
        max-width: 620px;
        padding: 36px 28px;
        border-radius: 28px;
    }

    .login-card h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .main {
        padding: 18px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .login-card h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }
}


/* =========================================================
   TABLAS DEL CHATBOT - ESTILO DATAGRID CORPORATIVO
   ========================================================= */

.markdown-content {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    color: #0f172a;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 0 0 16px;
    color: #0f2c67;
    font-weight: 800;
    line-height: 1.35;
}

.markdown-content h3 {
    font-size: 18px;
    padding-left: 2px;
}

.markdown-content p {
    margin: 12px 0;
    line-height: 1.65;
    color: #334155;
}

.markdown-content strong {
    color: #0f2c67;
    font-weight: 800;
}

.markdown-content table {
    width: 100%;
    min-width: 720px;
    margin: 16px 0 24px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #cfe0ff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    font-size: 14px;
}

.markdown-content thead {
    background: linear-gradient(135deg, #0f4fbf, #0b5ed7);
}

.markdown-content th {
    padding: 15px 16px;
    color: #ffffff;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    border-bottom: none;
}

.markdown-content td {
    padding: 15px 16px;
    color: #334155;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
}

.markdown-content tbody tr:nth-child(even) {
    background: #f8fbff;
}

.markdown-content tbody tr:hover {
    background: #eaf2ff;
    transition: background 0.18s ease;
}

.markdown-content tbody tr:last-child td {
    border-bottom: none;
}

.markdown-content th:first-child,
.markdown-content td:first-child {
    padding-left: 18px;
}

.markdown-content th:last-child,
.markdown-content td:last-child {
    padding-right: 18px;
}

.markdown-content ul,
.markdown-content ol {
    margin: 12px 0 18px 22px;
    padding: 0;
}

.markdown-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* La burbuja del bot se expande para permitir DataGrid */
.bot-bubble.markdown-content {
    max-width: 96%;
    width: fit-content;
    min-width: min(100%, 780px);
}

/* Scroll horizontal elegante para tablas anchas */
.markdown-content::-webkit-scrollbar {
    height: 8px;
}

.markdown-content::-webkit-scrollbar-track {
    background: #eff6ff;
    border-radius: 999px;
}

.markdown-content::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 999px;
}

.markdown-content::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* =========================================================
   COMPRA DE LAPTOP EN STOCK - CARD ESPECIAL
   ========================================================= */

.purchase-card {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.purchase-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.purchase-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #dbeafe;
    color: #0b5ed7;
    display: grid;
    place-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.purchase-icon.disabled {
    background: #f1f5f9;
    color: #64748b;
}

.purchase-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f2c67;
    font-weight: 900;
}

.purchase-header p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    font-size: 15px;
}

.success-text {
    color: #15803d;
    font-weight: 900;
}

.purchase-table {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    overflow: hidden;
    margin: 20px 0 24px;
    background: #ffffff;
}

.purchase-row {
    display: grid;
    grid-template-columns: 42% 58%;
    border-bottom: 1px solid #e2e8f0;
}

.purchase-row:last-child {
    border-bottom: none;
}

.purchase-row > div {
    padding: 15px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.purchase-head {
    background: linear-gradient(135deg, #0b5ed7, #1d4ed8);
    color: #ffffff;
    font-weight: 900;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #0f172a;
}

.mini-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.mini-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.mini-icon.blue {
    background: #dbeafe;
    color: #0b5ed7;
}

.mini-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.status-pill.success {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.blue {
    background: #dbeafe;
    color: #0b5ed7;
}

.purchase-subtitle {
    margin: 18px 0 12px;
    color: #334155;
    font-size: 15px;
}

.action-card {
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.action-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-left strong {
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
}

.action-left p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.action-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex-shrink: 0;
}

.form-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.form-icon {
    background: #dcfce7;
    color: #15803d;
    font-size: 26px;
}

.form-card strong {
    color: #15803d;
}

.pdf-card {
    background: #fff1f2;
    border: 1px solid #fca5a5;
}

.pdf-icon {
    background: #fee2e2;
    color: #dc2626;
    font-size: 18px;
}

.pdf-card strong {
    color: #dc2626;
}

.action-btn {
    text-decoration: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 900;
    white-space: nowrap;
    transition: 0.2s ease;
}

.form-btn {
    border: 1px solid #22c55e;
    color: #15803d;
    background: #ffffff;
}

.form-btn:hover {
    background: #dcfce7;
}

.pdf-btn {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.pdf-btn:hover {
    background: #b91c1c;
}

.purchase-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eaf2ff;
    color: #1e3a8a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.purchase-note span {
    font-size: 20px;
    flex-shrink: 0;
}

.purchase-note p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Para que la burbuja del bot se vea amplia con esta card */
.bot-bubble:has(.purchase-card) {
    max-width: 96%;
    width: 96%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Compatibilidad si :has no funciona en algún navegador */
.bot-bubble .purchase-card {
    margin: 0;
}

@media (max-width: 800px) {
    .purchase-row {
        grid-template-columns: 1fr;
    }

    .purchase-head div:nth-child(2) {
        display: none;
    }

    .action-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-btn {
        width: 100%;
        text-align: center;
    }
}



.bot-bubble:has(.purchase-card) {
    max-width: 96%;
    width: 96%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.purchase-card {
    width: 100%;
}


/* =========================================================
   GOOGLE LOGIN - CHATBOT IPESA
   ========================================================= */

.google-login-btn {
    width: 100%;
    min-height: 60px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.google-login-btn:hover {
    transform: translateY(-1px);
    border-color: #0b5ed7;
    box-shadow: 0 16px 30px rgba(11, 94, 215, 0.14);
    background: #f8fbff;
}

.google-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #0b5ed7;
    font-weight: 900;
    font-size: 18px;
    border: 1px solid #e2e8f0;
}

.secondary-info {
    margin-top: 18px;
}


/* =========================================================
   LOGIN SSO GOOGLE - CHATBOT IPESA
   ========================================================= */

.sso-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.10), transparent 32%),
        radial-gradient(circle at 30% 90%, rgba(147, 197, 253, 0.22), transparent 30%),
        #f7faff;
    color: #0f172a;
}

.sso-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 310px 1fr;
}

/* SIDEBAR */

.sso-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #062b63 0%, #031b3f 100%);
    color: #ffffff;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.12);
}

.sso-brand {
    margin-bottom: 36px;
}

.sso-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.sso-brand-text h2 {
    margin: 0;
    font-size: 28px;
    color: #4ea3ff;
    font-weight: 900;
}

.sso-brand-text p {
    margin: 8px 0 0;
    color: #dbeafe;
    font-size: 17px;
}

.sso-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sso-menu-item {
    min-height: 58px;
    border-radius: 18px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e0f2fe;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: 0.2s ease;
}

.sso-menu-item span {
    font-size: 24px;
}

.sso-menu-item.active,
.sso-menu-item:hover {
    background: rgba(59, 130, 246, 0.24);
    color: #ffffff;
}

.sso-status-card {
    margin-top: auto;
    border: 1px solid rgba(147, 197, 253, 0.32);
    background: rgba(15, 76, 145, 0.35);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sso-status-dot {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    margin-top: 3px;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
    flex-shrink: 0;
}

.sso-status-card strong {
    display: block;
    font-size: 16px;
    color: #ffffff;
}

.sso-status-card p {
    margin: 8px 0 0;
    color: #bfdbfe;
    line-height: 1.5;
}

.sso-bottom-note {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sso-shield {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.28);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.sso-bottom-note strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
}

.sso-bottom-note p {
    margin: 5px 0 0;
    color: #bfdbfe;
    font-size: 14px;
}

/* MAIN */

.sso-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.sso-main::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle, rgba(96, 165, 250, 0.18) 2px, transparent 3px);
    background-size: 18px 18px;
    opacity: 0.8;
    pointer-events: none;
}

.sso-card {
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #bfdbfe;
    border-radius: 34px;
    padding: 44px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 1;
}

.sso-badge {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b5ed7;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 22px;
}

.sso-card h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    color: #0f2c67;
    font-weight: 900;
}

.sso-subtitle {
    margin: 18px 0 30px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
    max-width: 560px;
}

.sso-google-btn {
    width: 100%;
    min-height: 66px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
    margin-bottom: 28px;
}

.sso-google-btn:hover {
    transform: translateY(-1px);
    border-color: #0b5ed7;
    background: #f8fbff;
    box-shadow: 0 18px 34px rgba(11, 94, 215, 0.16);
}

.sso-google-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #0b5ed7;
    border: 1px solid #e2e8f0;
    font-size: 20px;
    font-weight: 900;
}

.sso-error {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-weight: 800;
    font-size: 14px;
}

.sso-info-card {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 22px;
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 18px;
}

.sso-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #eaf2ff;
    color: #0b5ed7;
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sso-info-card strong {
    display: block;
    color: #0b5ed7;
    font-size: 16px;
    margin-bottom: 8px;
}

.sso-info-card p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.sso-footer {
    position: absolute;
    bottom: 24px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .sso-layout {
        grid-template-columns: 1fr;
    }

    .sso-sidebar {
        display: none;
    }

    .sso-main {
        padding: 28px;
    }
}

@media (max-width: 650px) {
    .sso-main {
        padding: 18px;
    }

    .sso-card {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .sso-card h1 {
        font-size: 31px;
    }

    .sso-subtitle {
        font-size: 15px;
    }

    .sso-info-card {
        flex-direction: column;
    }

    .sso-footer {
        position: static;
        margin-top: 22px;
        text-align: center;
    }
}