.ide-form-wrap {
    /* Forzar ancho disponible */
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    /* Asegurar padding no rompa el ancho */
    box-sizing: border-box;
}

.ide-form-group {
    position: relative;
    margin-bottom: 24px;
}

/* Tamaños de letras */

.ide-letra-11 {
    font-size: 11px !important;
}

.ide-letra-12 {
    font-size: 12px !important;
}

.ide-letra-13 {
    font-size: 13px !important;
}

.ide-letra-14 {
    font-size: 14px !important;
}

.ide-letra-15 {
    font-size: 15px !important;
}

.ide-letra-16 {
    font-size: 16px !important;
}

/* Input Styles */
.ide-form-group input {
    width: 100%;
    /* Asegurar comportamiento bloque */
    display: block;
    /* Padding incluido en el ancho */
    box-sizing: border-box;
    padding: 14px 12px 6px 12px;
    font-size: 16px;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #5c9aeb !important;
    box-shadow: none !important;
    border-radius: 1px;
    background-color: rgba(0, 0, 0, 0) !important;
    transition: all 0.2s ease;
    outline: none;
}

.ide-form-group input:focus {
    border-color: #5c9aeb;
    border: 0 0 0 1px solid #5c9aeb !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0);
}

/* Label Styles (Floating) */
.ide-form-group label {
    position: absolute;
    top: 14px;
    left: 12px;
    color: #5c9aeb;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: transparent;
}

.ide-letras-rojas {
    color: #cc0033 !important;
}

.ide-bold {
    font-weight: bold !important;
}

/* Float state: when input has focus OR has content */
.ide-form-group input:focus~label,
.ide-form-group input:not(:placeholder-shown)~label {
    top: -5px;
    font-size: 11px;
    color: #5c9aeb;
    /*font-weight: 600;*/
}

.ide-form-group input:not(:placeholder-shown)~label {
    color: #5c9aeb;
}

/* Color cuando no tiene foco pero si texto */

/* Hide default placeholder */
.ide-form-group input::placeholder {
    color: transparent;
}

/* Button */
.ide-btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    background-color: #2ea3f2;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.ide-btn-submit:hover {
    background-color: #1b8adb;
}

.ide-btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ide-btn:disabled {
    cursor: not-allowed;
}

/* Error Box */
#ide-ajax-error {
    display: none;
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ide-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Help Styles */
.ide-help-btn {
    display: inline-block;
    background: #5c9aeb;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;

    /* Positioning */
    position: absolute;
    right: 10px;
    top: 14px;
    /* Aligned with input padding/text approximately */
    z-index: 20;
}

.ide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    /* High z-index to cover everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.ide-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: ide-fadein 0.3s;
}

@keyframes ide-fadein {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ide-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.ide-modal-close:hover,
.ide-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.ide-modal-content img {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
}

.ide-modal-content h4 {
    margin-top: 0;
    color: #333;
}

/* Alerts */
.ide-alert {
    padding: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.ide-alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}


.ide-alert-error {
    color: #cc0033;
    background-color: #fce4e4;
    border-color: #fcc2c3;
}

/* Password Toggle Logic */
.ide-password-toggle {
    position: absolute;
    right: 12px;
    top: 18px;
    cursor: pointer;
    color: #5c9aeb;
    z-index: 10;
    font-size: 20px;
    transition: color 0.2s;
}

.ide-password-toggle:hover {
    color: #1b8adb;
}

/* Adjust input padding so text doesn't overlap icon */
.ide-form-group input[type="password"],
.ide-form-group input[type="text"] {
    padding-right: 40px !important;
}

.ide-help-btn {
    /* Adjusting help btn position if needed, but it should be fine */
    right: 35px;
    /* Aligned with input padding/text approximately */
    z-index: 20;
}

/* Highlight Animation for Dashboard Cards */
@keyframes ide-glow {
    0% {
        box-shadow: 0 0 5px rgba(46, 163, 242, 0.2);
        border-color: #2ea3f2;
    }

    50% {
        box-shadow: 0 0 15px rgba(46, 163, 242, 0.5);
        border-color: #1b8adb;
    }

    100% {
        box-shadow: 0 0 5px rgba(46, 163, 242, 0.2);
        border-color: #2ea3f2;
    }
}

.ide-card-resaltar {
    animation: ide-glow 2s infinite ease-in-out;
    position: relative;
    z-index: 1;
}