* {
    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: #9a9ea430;
}

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

.webgis-login-form-container {
    flex: 1;
    padding: 4em 3.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.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-title {
    font-size: 25px;
    font-weight: 900;
    color: var(--text-color);
}
.webgis-login-subtitle{
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 0.9em;
}

.webgis-login-form {
    width: 100%;
    margin-top: 20px;
}

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

.webgis-form-group label {
    display: none;
}
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 1.1em;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-icon-wrapper:focus-within .input-prefix-icon {
    color: var(--primary-color, #4f46e5);
}

.webgis-form-control {
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.webgis-form-control.soft-input {
    width: 100%;
    padding: 0.9em 1em 0.9em 3em;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--card-border-radius);
    font-size: 0.95em;
    transition: all 0.3s ease;
    color: #1f2937;
    box-sizing: border-box;
}

.webgis-form-control.soft-input::placeholder {
    color: #9ca3af;
}

.webgis-form-control.soft-input:focus {
    outline: none;
    border-color: var(--primary-color, #4f46e5);
    background-color: #ffffff;
}

.input-error {
    border-color: #fda29b !important;
    background-color: #fff3f3 !important;
}

.input-error:focus {
    border-color: #f04438 !important;
}

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

.webgis-toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    z-index: 5;
    font-size: 1.1em;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webgis-toggle-password:hover {
    color: var(--primary-color, #4f46e5);
}

.webgis-btn-login.soft-btn {
    width: 100%;
    padding: 0.9em;
    background: var(--primary-color, #4f46e5);
    color: white;
    border: none;
    border-radius: var(--card-border-radius);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5em;
    box-shadow: none;
}

.webgis-btn-login.soft-btn:hover {
    background: var(--primary-dark, #4338ca);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.webgis-btn-login.soft-btn:active {
    transform: scale(0.98);
}

.webgis-login-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 20px;
    padding-right: 4px;
}

.forgot-password-link {
    font-size: 13px;
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--primary-dark, #4338ca);
    text-decoration: underline;
}

.soft-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 1.5em 0;
}
.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-login-title {
        font-size: 22px;
    }
}

.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: 5px 12px 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    gap: 3px;

}


.env-badge.pre {
    background: #fef3c7;
    color: #ff711b;
    display: inline-flex;
    align-items: center;
    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;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
}

.env-badge.test .env-icon {
    width: 10px;
    height: 10px;
    background-color: #5178f8;
    border-radius: 50%;
    display: inline-block;
    animation: blink 5s infinite;
}

.env-badge.unknown {
    background: #e9d5ff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    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;
}

.alert-corporate {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #eaecf0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 1px 3px 0 rgba(16, 24, 40, 0.03);
    padding: 16px;
    margin-bottom: 24px;
    animation: slideInDown 0.4s ease-out;
}

.alert-corporate.danger {
    border-left-color: #d92d20;
}
.alert-corporate.success {
    border-left-color: #12b76a;
}
.alert-corporate.info {
    border-left-color: #2e90fa;
}
.alert-icon-wrapper {
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.alert-content-wrapper {
    flex-grow: 1;
}

.alert-title-text {
    color: #777474;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.alert-message-text {
    color: var(--text-color);
    font-size: 13px;
    line-height: 20px;
}

.alert-close-btn {
    color: #98a2b3;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    margin-left: 8px;
    font-size: 20px;
}
.alert-close-btn:hover {
    color: #344054;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake-container {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.company-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto 0px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.company-logo-square {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.company-logo-square img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.company-logo-backdrop {
    position: absolute;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.company-monogram {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: var(--primary-hover);
    border-radius: var(--card-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 12px auto 15px auto;
}
.company_name_minimal {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: help;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin: 10px auto 10px auto;
    width: 70%;
}
.help-block{
    color: #d92d20;
    font-size: 13px;
    margin-top: 4px;
}
.webgis-login-header {
    text-align: left;
}