/* Estilos de login.php */

body.login-context {
    background-color: #f8f9fa;
}

.login-section {
    padding: 150px 0 80px 0;
    clear: both;
    position: relative;
    z-index: 5;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gsap-text-style {
    font-size: 46px !important; /* Expreso en px ya que es fuente cursiva y requiere mayor volumen visual */
    font-weight: 700;
    color: #1e1936;
    margin-bottom: 15px;
}

.login-section .form-control {
    font-size: var(--text-sz-2); /* 13px para consistencia */
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.login-form .input-icon-wrap {
    position: relative;
    margin-bottom: 15px;
}

.login-form .input-icon-inner {
    position: relative;
}

.login-form .input-icon-inner .form-control {
    padding-left: 44px;
    margin-bottom: 0px;
}

.login-form .input-icon-inner .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-sz-3);
    pointer-events: none;
    z-index: 2;
}

.login-form .input-icon--user {
    color: #2563eb;
}

.login-form .input-icon--phone {
    color: #0d9488;
}

.login-form .input-icon--email {
    color: #9333ea;
}

.login-form .input-icon--type {
    color: #16a34a;
}

.login-form .input-icon--lock {
    color: #d97706;
}

.login-form .pass-wrapper.input-icon-wrap .input-icon-inner .form-control {
    padding-right: 44px;
}

.field-error-bubble {
    display: none;
    margin-top: 6px;
    padding: 7px 11px;
    font-size: var(--text-sz-1); /* 11px */
    line-height: 1.4;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    text-align: left;
}

.field-error-bubble.is-visible {
    display: block;
}

.field-error-bubble--block {
    margin-top: 8px;
}

.login-form .form-control.field-invalid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.login-form .form-control.field-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.login-terms-check.field-invalid-wrap {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fffafb;
}

.login-content p {
    font-size: var(--text-sz-3); /* 15px */
}

.dentus-btn {
    background: #E47A2E;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.dentus-btn:hover {
    background: #d1671b;
    color: #fff;
    opacity: 0.9;
}

.login-section .box-shadow {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.forget {
    font-size: var(--text-sz-2); /* 13px */
    margin-bottom: 20px;
}

.forget a {
    color: #E47A2E;
    text-decoration: none;
}

.form-check-label {
    font-size: var(--text-sz-2) !important; /* 13px */
}

.pass-wrapper {
    position: relative;
}

.pass-wrapper .input-icon-inner .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    padding: 4px;
    margin: -4px;
}

.pass-wrapper .input-icon-inner .toggle-pass:focus {
    outline: 2px solid rgba(228, 122, 46, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.login-brand-img {
    width: 600px;
    max-width: 90%;
    height: auto;
}

.login-main-row {
    max-width: 900px;
}

.login-terms-check .form-check-label a {
    color: #E47A2E;
    font-weight: 600;
    text-decoration: none;
}

.login-terms-check .form-check-label a:hover {
    text-decoration: underline;
}

.login-terms-check .form-check-input:checked {
    background-color: #E47A2E;
    border-color: #E47A2E;
}

.google-login-link {
    border-radius: 8px;
    border-color: #ddd;
}

.google-login-icon {
    width: 18px;
    height: 18px;
}

/* Aviso de entorno (despliegue / no productivo) */
.login-env-notice {
    box-shadow: 0 2px 12px rgba(30, 25, 54, 0.06);
    max-width: 832px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom select dropdown con iconos (tipo de usuario) */
.login-form .input-icon-inner.input-icon-inner--dropdown {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}
.login-form .input-icon-inner.input-icon-inner--dropdown .custom-select-wrapper {
    padding: 0;
    min-width: 0;
}
.input-icon-inner--dropdown .input-icon--type {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.custom-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}
.custom-select-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 40px 12px 44px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    color: #333;
    min-height: 46px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}
.custom-select-trigger:focus,
.custom-select-trigger:focus-visible,
.custom-select-trigger:active {
    outline: none;
    box-shadow: none;
    border: none;
}
.custom-select-value {
    font-size: var(--text-sz-2);
    color: #212529;
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-select-value i {
    color: #6c757d;
    font-size: 14px;
}
body.login-context .custom-select-trigger::after {
    display: none;
    content: none;
}
.custom-select-placeholder {
    color: #6c757d;
}
.login-form .input-icon-inner.input-icon-inner--dropdown:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.login-form .input-icon-wrap.field-invalid-wrap .input-icon-inner--dropdown {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25) !important;
}
.custom-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -6px;
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
    line-height: 1;
}
.custom-select-trigger[aria-expanded="true"] .custom-select-arrow {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}
.custom-select-options.is-open {
    display: block;
}
.custom-select-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
    font-size: 14px;
    color: #333;
    text-align: left;
    justify-content: flex-start;
}
.custom-select-option:hover,
.custom-select-option.selected {
    background: #f8f9fa;
}
.custom-select-option.selected {
    background: #e9ecef;
    font-weight: 500;
}
.option-icon {
    width: 16px;
    text-align: center;
    color: #6c757d;
    flex-shrink: 0;
}
.custom-select-option.selected .option-icon {
    color: #e67e22;
}
.custom-select-option span {
    flex: 1;
}
