/* TECNOINTE Portal UI - Login reconstruido */

:root {
    --primary: #160b70;
    --primary-2: #172a96;
    --cyan: #22d5e7;
    --cyan-2: #08a5d8;
    --dark: #071026;
    --text: #111827;
    --muted: #657286;
    --bg-light: #f3f7ff;
    --card: rgba(255,255,255,.95);
    --border: rgba(13, 29, 90, .12);
    --shadow: 0 28px 70px rgba(10, 25, 70, .18);
    --radius: 26px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

body.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-light);
}

/* LOGIN DESKTOP */

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 62%) minmax(360px, 38%);
}

.brand-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 28%, rgba(0, 176, 255, .25), transparent 26%),
        radial-gradient(circle at 92% 82%, rgba(34, 213, 231, .45), transparent 32%),
        linear-gradient(145deg, #050b3f 0%, #071d77 48%, #08b8d1 100%);
    padding: clamp(34px, 4vw, 62px);
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,.34);
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.06), transparent 16%, transparent 84%, rgba(0,0,0,.08)),
        radial-gradient(circle at 35% 80%, rgba(255,255,255,.06), transparent 38%);
    pointer-events: none;
}

.brand-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dot-grid {
    position: absolute;
    left: 0;
    top: 0;
    width: 210px;
    height: 230px;
    background-image: radial-gradient(rgba(34,213,231,.42) 1.2px, transparent 1.2px);
    background-size: 14px 14px;
    opacity: .55;
}

.arc {
    position: absolute;
    border: 1px solid rgba(28, 207, 255, .42);
    border-radius: 50%;
}

.arc-one {
    width: 900px;
    height: 900px;
    left: -120px;
    top: 90px;
    box-shadow: 0 0 30px rgba(28,207,255,.12);
}

..arc-one::before,
.arc-one::after {
    display:none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    opacity: .55;
}

.orb-one {
    width: 240px;
    height: 240px;
    background: rgba(30, 140, 255, .28);
    left: 7%;
    top: 15%;
}

.orb-two {
    width: 280px;
    height: 280px;
    background: rgba(34, 213, 231, .26);
    right: 8%;
    bottom: 8%;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
}

.brand-logo {
    width: min(470px, 72%);
    height: auto;
    display: block;
    margin-bottom: clamp(28px, 3vw, 42px);
}

.neon-logo {
    filter:
        drop-shadow(0 0 3px #fff)
        drop-shadow(0 0 10px rgba(255,255,255,.95))
        drop-shadow(0 0 20px rgba(34,213,231,.85))
        drop-shadow(0 0 34px rgba(34,213,231,.50));
}

.brand-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 62px);
    line-height: .98;
    letter-spacing: -.055em;
    color: #fff;
}

.brand-content h1 span {
    display: inline-block;
    color: var(--cyan);
    text-shadow: 0 0 24px rgba(34,213,231,.22);
}

.brand-content p {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.93);
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.42;
}

.feature-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(135px, 1fr));
    gap: 14px;
    max-width: 780px;
}

.feature-pill {
    min-width: 0;
    min-height: 122px;
    padding: 16px 14px;
    border-radius: 20px;
    background: rgba(6, 22, 95, .34);
    border: 1px solid rgba(34,213,231,.38);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 28px rgba(34,213,231,.10);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.pill-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(34,213,231,.08);
    border: 1px solid rgba(34,213,231,.48);
    box-shadow: 0 0 18px rgba(34,213,231,.28);
}

.pill-icon svg {
    width: 27px;
    height: 27px;
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(34,213,231,.7));
}

.feature-pill strong {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.15;
    color: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
}

.feature-pill small {
    display: block;
    width: 100%;
    color: rgba(255,255,255,.82);
    font-size: 11.5px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* RIGHT PANEL */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(26px, 3vw, 50px);
    background:
        radial-gradient(circle at top right, rgba(34,213,231,.10), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
}

.premium-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-card {
    width: min(430px, 100%);
    border-radius: var(--radius);
    padding: clamp(28px, 3vw, 42px);
}

.login-logo {
    width: min(300px, 100%);
    height: auto;
    display: block;
    margin: 0 0 28px;
}

.login-card h2 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: clamp(30px, 2.7vw, 40px);
    line-height: 1;
    letter-spacing: -.04em;
}

.login-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.alert {
    background: #fff0f0;
    border: 1px solid #ffc9c9;
    color: #b42318;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 900;
    color: var(--dark);
}

input {
    width: 100%;
    border: 1px solid rgba(20,16,107,.16);
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
    background: #fff9b8;
    color: #111827;
}

input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34,213,231,.20), 0 0 20px rgba(34,213,231,.16);
}

button {
    width: 100%;
    border: 0;
    border-radius: 15px;
    padding: 16px 18px;
    margin-top: 26px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, #112ea2 52%, var(--cyan-2) 100%);
    box-shadow: 0 18px 36px rgba(16, 42, 150, .28), 0 0 22px rgba(34,213,231,.25);
}

button:hover { transform: translateY(-1px); }

.lock-icon {
    font-size: 15px;
    margin-right: 8px;
}

.trust-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(20,16,107,.12);
    margin-top: 28px;
    padding-top: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.trust-line span + span::before {
    content: "•";
    margin-right: 10px;
    color: #aab4c4;
}

.login-footer {
    margin-top: 12px;
    color: var(--cyan-2);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

/* AJUSTE PARA "SITIO DE ESCRITORIO" EN CELULAR / VENTANAS ESTRECHAS */
@media (min-width: 769px) and (max-width: 1150px) {
    .login-layout {
        grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
    }

    .brand-panel {
        padding: 30px;
    }

    .brand-logo {
        width: min(360px, 72%);
        margin-bottom: 24px;
    }

    .brand-content h1 {
        font-size: clamp(28px, 3.8vw, 42px);
        margin-bottom: 14px;
    }

    .brand-content p {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 520px;
    }

    .feature-pills {
        grid-template-columns: repeat(3, minmax(95px, 1fr));
        gap: 10px;
        max-width: 560px;
    }

    .feature-pill {
        min-height: 96px;
        padding: 10px 8px;
        border-radius: 16px;
    }

    .pill-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .pill-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-pill strong {
        font-size: 11.5px;
    }

    .feature-pill small {
        font-size: 9.5px;
        line-height: 1.15;
    }

    .login-panel {
        padding: 22px;
    }

    .login-card {
        width: min(360px, 100%);
        padding: 26px;
    }

    .login-logo {
        width: 240px;
        margin-bottom: 22px;
    }

    .login-card h2 {
        font-size: 30px;
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    input {
        padding: 13px 14px;
    }

    button {
        padding: 14px 16px;
        font-size: 15px;
    }

    .trust-line,
    .login-footer {
        font-size: 12px;
    }
}

/* MOVIL: SOLO LOGIN */
@media (max-width: 768px) {
    body.login-page {
        background:
            radial-gradient(circle at top right, rgba(34,213,231,.10), transparent 35%),
            linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
    }

    .login-layout {
        display: block;
        min-height: 100vh;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 24px;
    }

    .login-card {
        width: 100%;
        max-width: 460px;
    }
}

/* DASHBOARD BASE SUPPORT */

.portal-page { min-height: 100vh; }

.portal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20,16,107,.08);
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo-full {
    width: 300px;
    max-width: 48vw;
    height: auto;
    display: block;
}

.header-title strong {
    display: block;
    font-size: 18px;
    color: var(--dark);
}

.header-title small {
    color: var(--muted);
    font-weight: 700;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
}

.header-user a {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 999px;
}

.portal-container {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.portal-welcome {
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(231,251,255,.90)),
        radial-gradient(circle at top right, rgba(36,207,230,.22), transparent 42%);
}

.eyebrow {
    color: var(--primary-2);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.portal-welcome h1 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--dark);
    letter-spacing: -.04em;
}

.portal-welcome p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.app-card {
    border-radius: var(--radius);
    padding: 28px;
    min-height: 220px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(36,207,230,.22), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0), rgba(36,207,230,.07));
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(36,207,230,.55);
    box-shadow: 0 28px 70px rgba(10, 20, 60, .22);
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2) 55%, var(--cyan));
    display: grid;
    place-items: center;
    box-shadow: 0 16px 30px rgba(20,16,107,.24);
    position: relative;
    z-index: 1;
}

.app-icon svg {
    width: 38px;
    height: 38px;
    fill: #fff;
}

.app-content { position: relative; z-index: 1; }

.app-content h2 {
    margin: 26px 0 8px;
    font-size: 28px;
    color: var(--dark);
    letter-spacing: -.04em;
}

.app-content p {
    color: var(--muted);
    line-height: 1.45;
    margin: 0 0 18px;
    font-size: 16px;
}

.app-content span {
    color: var(--primary-2);
    font-weight: 900;
}

.site-footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    color: #071762;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    border-top: 1px solid rgba(7,23,98,.10);
    z-index: 999;
}