/* ---- particles.js container ---- */
.particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}
/* ---- login ---- */
.loginImg{
    height: 160px;
    background-color: #f2f2f2;
    border-radius: 2px;
}

.textMessage{
	text-align: justify;
	font-size: 70%;
}

.column { max-width: 450px; }

.footer.segment {
  padding: 5em 0em;
}

 body, html {
        width: 100%;
        height: 100%;
    }

:root{
    --login-header-height: 240px; /* altura desde arriba donde empieza el contenido */
    --login-fade-height: 160px; /* altura del degradado inferior para suavizar el corte (reducida) */
}

    .login-container {
        display: flex;
        width: 100%;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: center;
        padding-top: var(--login-header-height); /* separa la tarjeta hacia abajo sobre la imagen */
        background: transparent; /* permitir ver la imagen de fondo del body */
        position: relative;
    }

    /* degradado para suavizar el paso de la imagen al fondo blanco */
    .login-container::after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        /* mover el inicio del degradado un poco hacia abajo para no tocar la parte superior */
        top: calc(var(--login-header-height) + 15px);
        height: var(--login-fade-height);
        /* degradado más localizado: casi transparente arriba, blanco completo abajo */
        background: linear-gradient(to bottom, rgba(255,255,255,0) 5%, rgba(255,255,255,1) 100%);
        pointer-events: none;
        z-index: 2;
    }

    .login-logo-section {
        position: absolute;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        color: white;
        z-index: 5;
    }

    .login-logo-section img {
        max-width: 420px;
        max-height: 220px;
        filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
    }

    .login-form-section {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 50px;
        background: transparent;
        width: 100%;
        z-index: 4;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
        background: white;
        border-radius: 12px;
        padding: 36px 34px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(0,0,0,0.02);
        position: relative;
        z-index: 6;
    }

    .login-title {
        font-size: 28px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 10px;
        text-align: center;
    }

    .login-subtitle {
        font-size: 14px;
        color: #718096;
        margin-bottom: 30px;
        text-align: center;
    }

    .saved-users {
        margin-bottom: 30px;
    }

    .saved-users-title {
        font-size: 12px;
        font-weight: 600;
        color: #a0aec0;
        text-transform: uppercase;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }

    .saved-user-item {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        margin-bottom: 8px;
        background: #f7fafc;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .saved-user-item:hover {
        background: #edf2f7;
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    }

    .saved-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        margin-right: 12px;
        font-size: 14px;
    }

    .saved-user-info {
        flex: 1;
    }

    .saved-user-name {
        font-size: 14px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 2px;
    }

    .saved-user-email {
        font-size: 12px;
        color: #718096;
    }

    .saved-user-remove {
        cursor: pointer;
        color: #cbd5e0;
        transition: color 0.3s ease;
    }

    .saved-user-remove:hover {
        color: #e53e3e;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 8px;
    }

    .form-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .form-input-wrapper .input-icon {
        position: absolute;
        left: 12px;
        color: #cbd5e0;
        font-size: 16px;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .form-input {
        width: 100%;
        padding: 12px 12px 12px 40px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
        background: white;
    }

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-checkbox {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
    }

    .form-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        cursor: pointer;
        accent-color: #667eea;
    }

    .form-checkbox label {
        font-size: 13px;
        color: #718096;
        cursor: pointer;
        margin: 0;
    }

    .form-actions {
        display: flex;
        gap: 10px;
    }

    .btn {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        flex: 1.5;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-secondary {
        background: #e2e8f0;
        color: #4a5568;
    }

    .btn-secondary:hover {
        background: #cbd5e0;
    }

    .error-message {
        margin-top: 20px;
        padding: 15px;
        background: #fff5f5;
        border: 1px solid #fc8181;
        border-radius: 8px;
        display: none;
    }

    .error-message.show {
        display: block;
    }

    .error-message-title {
        font-weight: 600;
        color: #e53e3e;
        margin-bottom: 5px;
    }

    .error-message-text {
        font-size: 13px;
        color: #c53030;
    }

    .loader {
        text-align: center;
        color: #667eea;
    }

    /* Ocultar navbar en login */
    .navbar, .ui.menu, .topnav {
        display: none !important;
    }

    @media (max-width: 768px) {
        .login-container {
            flex-direction: column;
        }

        .login-logo-section {
            padding: 30px 20px;
            min-height: auto;
        }

        .login-form-section {
            padding: 30px 20px;
        }

        .login-card {
            max-width: 100%;
            padding: 30px;
        }

        .login-title {
            font-size: 24px;
        }
    }
