:root {
    --purple: #8e3a8f;
    --fucsia: #CB046F;
    --teal: #00A1A1;
    --yellow: #F0EE00;
    --bg: #f5f6f8;
    --text: #2c2c2c;
    --text-soft: #6f7680;
    --border: #e6e8ec;
}

/* BASE */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

/* FONDO PREMIUM */
body {
    background: radial-gradient(circle at 10% 20%, rgba(0,161,161,0.05), transparent 30%), radial-gradient(circle at 90% 80%, rgba(203,4,111,0.05), transparent 30%), #f5f6f8;
}

/* CENTRADO */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 340px;
    background: white;
    padding: 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 3px 8px rgba(0,0,0,0.03);
    animation: fadeScale 0.4s ease;
}

    /* BARRA SUPERIOR DE MARCA */
    .login-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, var(--purple), var(--fucsia), var(--teal));
        border-radius: 16px 16px 0 0;
        margin: -1.6rem -1.6rem 1.2rem -1.6rem;
    }

/* LOGO */
.logo {
    max-width: 110px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* TEXTOS */
.title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1.4rem;
}

/* INPUTS */
.custom-input {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

    .custom-input:hover {
        border-color: #d2d6dc;
    }

    .custom-input:focus-within {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(142,58,143,0.08);
    }

    .custom-input .input-group-text {
        border: none;
        background: transparent;
        color: var(--fucsia);
    }

    .custom-input .form-control {
        border: none;
        background: transparent;
        box-shadow: none;
    }

.btn-eye {
    background: transparent;
    border: none;
    color: var(--purple);
    cursor: pointer;
}

/* BOTON */
.btn-login {
    background: linear-gradient(135deg, var(--teal), #12b8b8);
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 600;
    color: white;
    border: none;
    transition: all 0.25s ease;
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 161, 161, 0.25);
    }

/* ANIMACION */
@keyframes fadeScale {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 576px) {
    body {
        overflow-y: auto;
    }

    .login-card {
        padding: 1.3rem;
    }

    .logo {
        max-width: 95px;
    }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-box {
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 180px;
}

.spinner-mag {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px auto;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #d4147a; /* magenta */
    border-right: 6px solid #14b8b5; /* turquesa */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}