/*:root {*/
/*    --primary-color: #3b92db;*/
/*    --primary-dark: #3b86c7;*/
/*    --primary-light: #7bc6ff;*/
/*    --electric-blue: #0066cc;*/
/*    --text-color: #333;*/
/*    --light-bg: #f8f9fa;*/
/*    --white: #ffffff;*/
/*    --gray-medium: #ced4da;*/
/*}*/

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

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
}

.webgis-login-container {
    display: flex;
    width: 1000px;
    max-width: 95%;
    min-height: 600px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    animation: webgis-fadeInUp 0.8s ease-out;
    border: 1px solid var(--gray-medium);
}

.webgis-login-form-container {
    flex: 1;
    padding: 3em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.98);
}

.webgis-map-preview {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background-color: #e0e7ff;
}

.webgis-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #b6c5d1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.webgis-map-art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.webgis-map-grid {
    font-size: 1.2rem !important;
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.webgis-logo-container {
    text-align: center;
}

.webgis-logo-container img {
    max-width: 53%;
    max-height: 100px;
}

.webgis-login-header {
    margin-bottom: 2em;
}

.webgis-login-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.webgis-login-form {
    width: 100%;
}

.webgis-form-group {
    margin-bottom: 1.5em;
    position: relative;
}

.webgis-form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--text-color);
}

.webgis-form-control {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.webgis-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.webgis-password-container {
    position: relative;
}

.webgis-toggle-password {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

.webgis-toggle-password:hover {
    color: var(--electric-blue);
}

.webgis-btn-login {
    width: 100%;
    padding: 0.9em;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 15px rgba(91, 166, 231, 0.4);
    background-position: left;
}

.webgis-btn-login:hover {
    background-position: right;
    box-shadow: 0 6px 18px rgba(91, 166, 231, 0.6);
    transform: translateY(-2px);
}

.webgis-login-footer {
    text-align: center;
    margin-top: 1.5em;
    color: #666;
    font-size: 0.9em;
}

.webgis-login-footer a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.webgis-login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.webgis-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.webgis-floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.21);
    border-radius: 50%;
    animation: webgis-floatAround 15s linear infinite;
}

.webgis-floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-duration: 20s;
}

.webgis-floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.webgis-floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 85%;
    animation-duration: 18s;
    animation-delay: 1s;
}

@keyframes webgis-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes webgis-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes webgis-floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(100px, 0) rotate(180deg);
    }
    75% {
        transform: translate(50px, -50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes webgis-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .webgis-login-container {
        flex-direction: column;
        min-height: auto;
    }

    .webgis-map-preview {
        display: none;
    }

    .webgis-logo-container {
        max-width: 300px;
        margin: 0 auto 1.5em;
    }

    .webgis-login-title {
        font-size: 1.8em;
        text-align: center;
    }
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.company_name {
    font-size: 0.875em;
    color: dimgray;
}

.env-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 1px;
    margin-top: 7px;
    border: 1px solid transparent;
    gap: 3px;

}


.env-badge.pre {
    background: #fef3c7;
    color: #ff711b;
    border-color: #fde68a;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-weight: bold;
}

.env-badge.pre .env-icon {
    width: 10px;
    height: 10px;
    background-color: #ff711b; /* color naranja */
    border-radius: 50%; /* hace el círculo */
    display: inline-block;
    animation: blink 5s infinite; /* parpadeo */
}

.env-badge.test {
    background: #dbeafe;
    color: #5178f8;
    border-color: #bfdbfe;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-weight: bold;
}

.env-badge.test .env-icon {
    width: 10px;
    height: 10px;
    background-color: #5178f8;
    border-radius: 50%; /* hace el círculo */
    display: inline-block;
    animation: blink 5s infinite; /* parpadeo */
}

.env-badge.unknown {
    background: #e9d5ff;   /* fondo lila claro */
    color: #7c3aed;        /* texto morado intenso */
    border-color: #d8b4fe; /* borde lila medio */
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-weight: bold;
}

.env-badge.unknown .env-icon {
    width: 10px;
    height: 10px;
    background-color: #7c3aed; /* icono morado intenso */
    border-radius: 50%;         /* hace el círculo */
    display: inline-block;
    animation: blink 5s infinite; /* parpadeo */
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
#gisce-ti_logo{
    margin: 0px 0px 2px 0px;
}