*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}
.avatar-image {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.remove-avatar[disabled] {
    opacity: 0;
}
.shadow-modal {
    box-shadow: 0 5px 10px black;
}

.tooltip.custom-tooltip {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    --bs-tooltip-bg:: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    border-radius: 0.375rem;
    color: #fff;
}
.custom-tooltip.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before, .custom-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #0284c7 !important;
}

.bg-danger-gradient {
    background: linear-gradient(to bottom, rgba(169,3,41,1) 0%,rgba(143,2,34,1) 44%,rgba(109,0,25,1) 100%);
}
.bg-warning-gradient {
    background: linear-gradient(to bottom, rgba(168,154,3,1) 0%,rgba(142,131,2,1) 44%,rgba(107,98,0,1) 100%);
}
.bg-success-gradient {
    background: linear-gradient(to bottom, rgba(3,165,3,1) 0%,rgba(2,140,2,1) 44%,rgba(0,104,0,1) 100%);
}
.bg-secondary-gradient {
    background: linear-gradient(to bottom, rgba(163,163,163,1) 0%,rgba(137,137,137,1) 44%,rgba(102,102,102,1) 100%);

}

.mt-6 {
    margin-top: 6rem;
}

.pt-6 {
    padding-top: 6rem;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo - branding */
.brand-panel {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.brand-panel::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 420px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.brand-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-weight: 300;
}

.brand-features {
    margin-top: 3rem;
    text-align: left;
}

.brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: rgba(255,255,255,0.8);
}

.brand-features .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #38bdf8;
}

/* Panel derecho - formulario */
.form-panel {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f8fafc;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-header a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.form-header a:hover {
    text-decoration: underline;
}

.form-floating {
    margin-bottom: 1.25rem;
}

.form-floating .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem 3rem;
    height: 56px;
    background: white;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-floating .form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

.form-floating label {
    padding-left: 3rem;
    color: #94a3b8;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.form-floating:focus-within .input-icon {
    color: #0ea5e9;
}

.btn-toggle-pass {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 5;
}

.btn-toggle-pass:hover {
    color: #0f172a;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-check-input:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

.form-check-label {
    font-size: 0.875rem;
    color: #64748b;
}

.form-options a {
    font-size: 0.875rem;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    color: white;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(14,165,233,0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.social-login {
    display: flex;
    gap: 0.75rem;
}

.btn-social {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-social:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 991.98px) {
    .brand-panel { display: none; }
    .form-panel {
        flex: 1;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
    }
    .form-container {
        background: white;
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    }
}

@media (max-width: 575.98px) {
    .form-panel { padding: 1.5rem; }
    .form-container { padding: 1.5rem; }
}

:root { --n5-from: #10b981; --n5-to: #06b6d4; }
body {
    min-height: 100vh;
    display: flex;
    align-items: self-start;
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
}
.login-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
    overflow: hidden;
}
.login-brand {
    width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center; margin: 0 auto;
    background: linear-gradient(135deg, var(--n5-from), var(--n5-to));
    color: #fff; font-weight: 700; font-size: 1.5rem;
}
.btn-n5 {
    background: linear-gradient(135deg, var(--n5-from), var(--n5-to));
    border: none; color: #fff; font-weight: 600;
}
.btn-n5:hover { filter: brightness(1.05); color: #fff; }
.form-floating > .form-control:focus { border-color: var(--n5-to); box-shadow: 0 0 0 .2rem rgba(6,182,212,.20); }
.toggle-pass { cursor: pointer; }

.gradient-icon-base {
    background: #0284c7;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-primary {
    background: #0a58ca;
    background: linear-gradient(135deg, #0a58ca99, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-secondary {
    background: #777777;
    background: linear-gradient(135deg, #afafafff, #777777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-warning {
    background: #d49f00;
    background: linear-gradient(135deg, #ffc72099, #d49f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-success {
    background: #146c43;
    background: linear-gradient(135deg, #146c4399, #146c43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-danger {
    background: #d40000;
    background: linear-gradient(135deg, #ff202099, #d40000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
.gradient-icon-info {
    background: #008eab;
    background: linear-gradient(135deg, #31d2f299, #008eab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}

.gradient-icon-dark {
    background: #000;
    background: linear-gradient(135deg, #777, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position:relative;
}
/*.gradient-icon-base::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);

    -webkit-text-fill-color: initial;
}*/
.gradient-primary-card {
    background: linear-gradient(180deg, #fff, #0284c722);
}
.gradient-primary-badge {
    background: linear-gradient(135deg, #0a58ca99, #0a58ca);
}
.gradient-secondary-card {
    background: linear-gradient(180deg, #fff, #7772);
}
.gradient-secondary-badge {
    background: linear-gradient(135deg, #afafafff, #777777);
}
.gradient-warning-card {
    background: linear-gradient(180deg, #fff, #ffc72022);
}
.gradient-warning-badge {
    background: linear-gradient(135deg, #ffc72099, #d49f00);
}
.gradient-danger-card {
    background: linear-gradient(180deg, #fff, #9e121222);
}
.gradient-danger-badge {
    background: linear-gradient(135deg, #ff202099, #d40000);
}
.gradient-success-card {
    background: linear-gradient(180deg, #fff, #146c4322);
}
.gradient-success-badge {
    background: linear-gradient(135deg, #146c4399, #146c43);
}
.gradient-info-card {
    background: linear-gradient(180deg, #fff, #25cff222);
}
.gradient-info-badge {
    background: linear-gradient(135deg, #31d2f299, #008eab);
}
.gradient-dark-card {
    background: linear-gradient(180deg, #fff, #00000022);
}
.gradient-dark-badge {
    background: linear-gradient(135deg, #8f8f8f99, #000);
}
.bg-border-secondary-70 {
    background: linear-gradient(to bottom, #fff 69px, #ccc 69px, #fff 70px);
}


.modal-form-user .page-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-form-user .page-header .header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(14,165,233,0.3);
}
.modal-form-user .page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}
.modal-form-user .page-header p {
    color: #64748b;
    font-size: 0.95rem;
}
.modal-form-user .form-card {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}
.modal-form-user .form-card .card-header {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 2rem;
}
.modal-form-user .form-card .card-header h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-form-user .form-card .card-body {
    padding: 2rem;
}
.modal-form-user .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}
.modal-form-user .form-label .text-muted {
    font-weight: 400;
    color: #94a3b8;
}
.modal-form-user .form-control, .modal-form-user .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fafbfc;
    transition: all 0.2s ease;
}
.modal-form-user .form-control:focus, .modal-form-user .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3.5px rgba(14,165,233,0.1);
    background: white;
}
.modal-form-user .form-control::placeholder {
    color: #cbd5e1;
}
.modal-form-user .input-group-text:not(.last) {
    border: 1.5px solid #e2e8f0;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
}
.modal-form-user .input-group .input-group-text.last, .input-group .form-control.input-group-text.last {
    border-bottom-right-radius: 10px !important;
    border-top-right-radius: 10px !important;" 
}
.modal-form-user .input-group .form-control:not(.last) {
    border-left: 0;
    border-radius: 0 10px 10px 0;
}
.modal-form-user .input-group:focus-within .input-group-text {
    border-color: #0ea5e9;
    background: #f0f9ff;
    color: #0ea5e9;
}
.modal-form-user .form-text {
    font-size: 0.78rem;
    margin-top: 0.35rem;
}
.modal-form-user .section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
}
.modal-form-user .section-divider::before, .modal-form-user .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.modal-form-user .section-divider span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}
.modal-form-user .avatar-upload {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 0.5rem;
}
.modal-form-user .avatar-upload:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}
.modal-form-user .avatar-upload i {
    font-size: 1.5rem;
    color: #94a3b8;
}
.modal-form-user .avatar-upload span {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}
.modal-form-user .btn-submit {
    height: 50px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}
.modal-form-user .btn-submit:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.35);
    color: white;
}
.modal-form-user .btn-reset {
    height: 50px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
}
.modal-form-user .btn-reset:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}
.modal-form-user .password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: 0.5rem;
    overflow: hidden;
}
.modal-form-user .password-strength .bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Success animation */
.modal-form-user .form-success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-form-user .form-success-overlay.show {
    display: flex;
}
.modal-form-user .success-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-form-user .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(16,185,129,0.3);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 575.98px) {
    .modal-form-user .form-card .card-body { padding: 1.5rem; }
}
