* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #dcdcdc;
    padding-bottom: 40px;
    text-align: center;
}

/* =========================================================
   TECHSTOCK LOGIN ACTUAL
========================================================= */
.brand-techstock {
    background: #dcdcdc;
}

.brandbar {
    position: relative;
    height: 120px;
    background: #000;
    border-bottom: 6px solid #1a73e8;
    overflow: visible;
    z-index: 10;
}

.galaxy-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image:
        linear-gradient(to bottom, rgba(10,0,40,0.6), rgba(0,0,0,0.85)),
        url("IMAGENES/SISTEMA/galaxia.jpg");
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: galaxyMove 50s ease-in-out infinite alternate;
}

@keyframes galaxyMove {
    0%   { background-position: center top; }
    100% { background-position: center bottom; }
}

.brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 120px;
    bottom: -60px;
    z-index: 50;
}

.star-arc {
    position: absolute;
    left: 50%;
    bottom: -112px;
    width: 100px;
    height: 220px;
    transform: translateX(-50%);
    overflow: visible;
    pointer-events: none;
    z-index: 40;
}

.shooting-star {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 12px 8px rgba(255,255,255,1);
    transform-origin: 0px 120px;
    animation: arcMove 5s ease-in-out infinite;
}

@keyframes arcMove {
    0% {
        opacity: 0;
        transform: rotate(-90deg) scale(0.8);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(90deg) scale(0.8);
    }
}

.particles-bar {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #1a73e8;
    overflow: hidden;
    z-index: 5;
}

.particles-bar .particle {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: #87c5ff;
    border-radius: 50%;
    filter: blur(1px) brightness(1.4);
    animation: particleMove linear infinite;
}

@keyframes particleMove {
    from { transform: translateX(0); }
    to   { transform: translateX(120vw); }
}

.particles-bar .particle:nth-child(1)  { left: -20px; animation-duration: 3.5s; }
.particles-bar .particle:nth-child(2)  { left: -40px; animation-duration: 4.2s; height: 3px; width: 3px; }
.particles-bar .particle:nth-child(3)  { left: -80px; animation-duration: 2.6s; }
.particles-bar .particle:nth-child(4)  { left: -120px; animation-duration: 3.1s; height: 5px; width: 5px; }
.particles-bar .particle:nth-child(5)  { left: -160px; animation-duration: 4.8s; }
.particles-bar .particle:nth-child(6)  { left: -200px; animation-duration: 3.7s; }
.particles-bar .particle:nth-child(7)  { left: -240px; animation-duration: 5.1s; height: 6px; width: 6px; }
.particles-bar .particle:nth-child(8)  { left: -280px; animation-duration: 3.2s; }
.particles-bar .particle:nth-child(9)  { left: -320px; animation-duration: 4.4s; }
.particles-bar .particle:nth-child(10) { left: -360px; animation-duration: 2.9s; height: 3px; width: 3px; }
.particles-bar .particle:nth-child(11) { left: -400px; animation-duration: 5.6s; }
.particles-bar .particle:nth-child(12) { left: -440px; animation-duration: 3.9s; }

.brand-sub {
    margin-top: 70px;
    margin-bottom: 28px;
    text-align: center;
}

.brand-title {
    font-size: 23px;
    font-weight: 800;
    color: #3367d6;
    letter-spacing: 0.3px;
}

.brand-kicker {
    font-size: 18px;
    color: #4f6ca8;
    margin-top: 2px;
}

.login-card {
    width: min(92vw, 520px);
    margin: 0 auto;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 34px 26px 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    text-align: left;
}

.login-title {
    font-size: 24px;
    color: #0d2f89;
    margin-bottom: 18px;
    font-weight: 800;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #1d7a17;
    font-weight: 700;
}

.login-input {
    width: 100%;
    border: 1px solid #c7d2e7;
    background: #dfe7f4;
    border-radius: 12px;
    padding: 14px 14px;
    margin-bottom: 16px;
    outline: none;
    font-size: 15px;
}

.login-input:focus {
    border-color: #61a4ff;
    box-shadow: 0 0 0 3px rgba(97,164,255,.18);
}

.btn-login {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #2870db, #57a4ff);
    box-shadow: 0 10px 22px rgba(40,112,219,.22);
}

.btn-login:hover {
    filter: brightness(1.02);
}

.login-note {
    margin-top: 14px;
    color: #c31919;
    font-size: 14px;
    text-align: left;
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
    font-size: 14px;
}

/* =========================================================
   MENÚ PRINCIPAL Y OTROS ESTILOS EXISTENTES
========================================================= */
.top-user {
    position: absolute;
    right: 20px;
    color: #fff;
    font-weight: 600;
}

.logout-btn {
    color: white;
    padding: 5px 10px;
    border: 1px solid white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
}

.logout-btn:hover {
    background: white;
    color: black;
}

.main-title {
    font-size: 32px;
    margin: 65px 0;
    font-weight: 700;
}

.menu-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.menu-card {
    background: white;
    border-radius: 18px;
    padding: 35px 20px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

.menu-card:nth-child(1) { animation-delay: 0.1s }
.menu-card:nth-child(2) { animation-delay: 0.2s }
.menu-card:nth-child(3) { animation-delay: 0.3s }
.menu-card:nth-child(4) { animation-delay: 0.4s }
.menu-card:nth-child(5) { animation-delay: 0.5s }
.menu-card:nth-child(6) { animation-delay: 0.6s }
.menu-card:nth-child(7) { animation-delay: 0.7s }
.menu-card:nth-child(8) { animation-delay: 0.8s }
.menu-card:nth-child(9) { animation-delay: 0.9s }
.menu-card:nth-child(10) { animation-delay: 1s }
.menu-card:nth-child(11) { animation-delay: 1.1s }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.menu-card.green:hover  { box-shadow: 0 0 22px rgba(22,163,74,0.45); }
.menu-card.blue:hover   { box-shadow: 0 0 22px rgba(37,99,235,0.45); }
.menu-card.purple:hover { box-shadow: 0 0 22px rgba(124,58,237,0.45); }
.menu-card.orange:hover { box-shadow: 0 0 22px rgba(249,115,22,0.45); }
.menu-card.red:hover    { box-shadow: 0 0 22px rgba(220,38,38,0.45); }
.menu-card.yellow:hover { box-shadow: 0 0 22px rgba(234,179,8,0.45); }
.menu-card.teal:hover   { box-shadow: 0 0 22px rgba(13,148,136,0.45); }
.menu-card.indigo:hover { box-shadow: 0 0 22px rgba(79,70,229,0.45); }
.menu-card.slate:hover  { box-shadow: 0 0 22px rgba(71,85,105,0.45); }
.menu-card.dark:hover   { box-shadow: 0 0 22px rgba(55,65,81,0.45); }
.menu-card.cyan:hover   { box-shadow: 0 0 22px rgba(6,182,212,0.45); }

.icon {
    font-size: 40px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.menu-card:hover .icon {
    transform: translateY(-6px);
}

.userbox {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.55);
    padding: 6px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.logout-btn {
    color: #fff;
    padding: 4px 10px;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #fff;
    color: #000;
}

.green  { border-top: 5px solid #16a34a; }
.blue   { border-top: 5px solid #2563eb; }
.purple { border-top: 5px solid #7c3aed; }
.orange { border-top: 5px solid #f97316; }
.red    { border-top: 5px solid #dc2626; }
.yellow { border-top: 5px solid #eab308; }
.teal   { border-top: 5px solid #0d9488; }
.indigo { border-top: 5px solid #4f46e5; }
.slate  { border-top: 5px solid #475569; }
.dark   { border-top: 5px solid #374151; }
.cyan   { border-top: 5px solid #06b6d4; }

/* =========================================================
   DTEX LOGIN NUEVO
========================================================= */
.brand-dtex {
    background:
        radial-gradient(circle at 12% 18%, rgba(52,211,235,.10), transparent 22%),
        radial-gradient(circle at 88% 82%, rgba(29,78,216,.08), transparent 18%),
        linear-gradient(135deg, #f7fafc 0%, #eef2f7 100%);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

.dtex-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
}

.dtex-auth-left {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 42px;
    background: linear-gradient(145deg, #0d47c9 0%, #11d6e6 100%);
}

.dtex-left-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(7,44,149,.95) 0%, rgba(19,203,224,.88) 100%);
    opacity: 1;
}

.dtex-left-overlay {
    display: none;
}


.dtex-left-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    color: #fff;
    text-align: center;
}

.dtex-left-logo {
    display: block;
    width: 220px;
    max-width: 70%;
    max-height: 140px;
    object-fit: contain;
    margin: 0 auto 26px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.18));
}

.dtex-left-title {
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-shadow: 0 5px 14px rgba(0,0,0,.20);
    margin-bottom: 20px;
}

.dtex-left-subtitle {
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.3;
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255,255,255,.97);
    text-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.dtex-auth-right {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.dtex-login-card {
    width: min(100%, 460px);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(203,213,225,.65);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15,23,42,.12);
    padding: 34px 30px 26px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.dtex-login-top {
    margin-bottom: 14px;
}

.dtex-login-logo {
    display: block;
    width: 210px;
    max-width: 70%;
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto;
}

.dtex-login-intro {
    font-size: 17px;
    color: #1f2937;
    margin-bottom: 18px;
    font-weight: 500;
}

.dtex-login-error {
    text-align: left;
    margin-bottom: 18px;
}

.dtex-form {
    text-align: left;
}

.dtex-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.dtex-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 23px;
    color: #707782;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

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

.dtex-input {
    width: 100%;
    height: 58px;
    border: 1.5px solid #b8c0cb;
    border-radius: 13px;
    padding: 0 52px 0 52px;
    background: rgba(255,255,255,.96);
    outline: none;
    font-size: 17px;
    letter-spacing: .4px;
    color: #374151;
}

.dtex-input::placeholder {
    color: #4b5563;
    opacity: .95;
}

.dtex-input:focus {
    border-color: #0ec7dd;
    box-shadow: 0 0 0 4px rgba(14,199,221,.12);
}

.dtex-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtex-toggle-pass svg {
    width: 22px;
    height: 22px;
}

.dtex-btn-login {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px 18px;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .4px;
    cursor: pointer;
    background: linear-gradient(90deg, #1347d4 0%, #12d7e6 100%);
    box-shadow: 0 12px 26px rgba(18,118,226,.20);
}

.dtex-btn-login:hover {
    filter: brightness(1.03);
}

.dtex-login-links {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    color: #374151;
}

.dtex-footer-line {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: #4b5563;
    letter-spacing: .2px;
}

@media (max-width: 1100px) {
    .dtex-auth-page {
        grid-template-columns: 1fr;
    }

    .dtex-auth-left {
        min-height: auto;
        padding: 56px 28px 42px;
    }

    .dtex-auth-right {
        min-height: auto;
        padding: 22px 20px 42px;
    }

    .dtex-left-title {
        font-size: clamp(34px, 8vw, 56px);
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 0;
    }

    .brand-sub {
        margin-top: 68px;
        margin-bottom: 24px;
        padding-inline: 14px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-kicker {
        font-size: 15px;
    }

    .login-card {
        width: calc(100vw - 20px);
        padding: 26px 16px 22px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 22px;
    }

    .dtex-auth-left {
        padding: 42px 18px 26px;
    }

    .dtex-auth-right {
        padding: 18px 14px 28px;
    }

    .dtex-left-logo {
        width: 150px;
        margin-bottom: 18px;
    }

    .dtex-left-title {
        font-size: clamp(28px, 10vw, 42px);
        line-height: 1.02;
    }

    .dtex-left-subtitle {
        font-size: 18px;
    }

    .dtex-login-card {
        border-radius: 20px;
        padding: 24px 16px 20px;
    }

    .dtex-login-logo {
        width: min(180px, 72%);
    }

    .dtex-login-intro {
        font-size: 16px;
    }

    .dtex-input {
        height: 54px;
        font-size: 16px;
    }

    .dtex-btn-login {
        font-size: 17px;
        padding: 14px 16px;
    }
}

@media(max-width: 480px){
    .userbox {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }

    .logout-btn {
        padding: 3px 8px;
        font-size: 12px;
    }

    .main-title { font-size: 24px; }

    .menu-card {
        padding: 28px 15px;
        font-size: 18px;
    }

    .icon {
        font-size: 34px;
    }
}