html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.full-height {
    height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.position-ref {
    position: relative;
}

.back-full {
    background-image: url("{{asset($_ENV['PATH_BG'])}}");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.panel-default {
    border: none;
    border-radius: 2px;
    width: 310px;
    box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 5px;
    background-color: white;
}

.panel-heading {
    border: none;
    background: none;
    padding: 10px;
}

.content-logo {
    text-align: center;
}

.content-logo img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.panel-body {
    padding: 1.25rem;
}

.panel-body .form-group {
    margin-bottom: 1rem;
}

.panel-body .input-group {
    display: flex;
}

.input-group-prepend .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
    min-width: 38px; /* opcional para consistencia */
}

.input-group-prepend {
    border-radius: 4px 0 0 4px;
    border: 1px solid #e0e0e0;
    border-right: none;
    display: flex;
}

.input-group-prepend svg{
    fill: #495057 !important;
    scale: .4;
}

.form-control {
    border-radius: 0 4px 4px 0;
    border: 1px solid #e0e0e0;
    border-left: none;
    flex: 1;
    padding: .375rem .75rem;
    line-height: 24px
}

.btn-block {
    width: 100%;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 5px;
    background-color: #00609e;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.btn-block:hover {
    background-color: #003f6b;
}

#footer {
    font-size: 12px;
    text-align: center;
}

#footer a {
    color: #00609e;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

.d-block{
    display: block;
}

/* Error Message Styles */
.form-group.error .input-group-prepend{
    border-color: #dc3545;
    border-right: none;
}

.form-group.error .input-group-prepend svg{
    fill: #dc3545 !important;
}

.form-group.error .form-control {
    border-color: #dc3545;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    padding-right: 2.5rem; /* espacio para el icono */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    position: relative;
}

.form-group.error .form-control:focus {
    box-shadow: 0 0 0 0.2rem #dc354540;
}

.form-group.error .error-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 1rem;
    pointer-events: none;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}


/* Warning Message Styles */

.qa-warning {
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    text-align: center;
    padding: .1rem 0;
    background-color: #FFC107;
}
/* Floating Message Styles */

.floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.floating-message .message {
    display: flex;
    align-items: center;
    background-color: #d9edf7;
    color: #31708f;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    max-width: 300px;
    font-size: 14px;
    position: relative;
}

.floating-message .message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.floating-message .message.error {
    background-color: #f2dede;
    color: #a94442;
}

.floating-message .close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    position: absolute;
    top: 6px;
    right: 10px;
}
