@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap');

/* ===== CLIENT FORM STYLES ===== */

body {
    margin: 0;
    font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #f4f6f8;
}

/* === NAVBAR === */
.navbar {
    background-color: #1f2937;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar .brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.navbar .app-version {
    color: #9ca3af;
    font-size: 0.72rem;
    line-height: 1;
}

.navbar .nav-links {
    display: flex;
    gap: 1rem;
}

.navbar .nav-links a,
.navbar form button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    transition: background 0.2s;
}

.navbar .nav-links a:hover,
.navbar form button:hover {
    background-color: #374151;
    border-radius: 6px;
}

/* === FORMULARIO === */
.form-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h1,
.form-container h2,
.form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row > div {
    flex: 1;
    min-width: 250px;
}

form .form-group {
    margin-bottom: 1.2rem;
}

label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

button[type="submit"],
.btn-primary {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: #004a99;
}

.btn-link {
    color: #0066cc;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

.btn-link:hover {
    text-decoration: underline;
}

/* === TABLAS === */
.table-wrapper {
    max-width: 100%;
    margin: 2rem auto;
    overflow-x: auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .table-wrapper {
        max-width: 1400px; /* o incluso 1600px si lo deseas */
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    table-layout: auto;
}

thead {
    background-color: #e5e7eb;
    font-weight: bold;
}

thead th {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #d1d5db;
}

tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
    background-color: #f9fafb;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.actions form {
    display: inline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
    }

    table {
        font-size: 0.9rem;
    }

    thead {
        display: none;
    }

    tbody td {
        display: block;
        padding: 0.6rem 0.8rem;
    }

    tbody tr {
        display: block;
        margin-bottom: 1rem;
        background-color: white;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 0.4rem;
    }
}

.nav-user {
    margin-right: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #d1d5db;
}

/* === BOTONES BONITOS === */
.btn {
    display: inline-block;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #004a99;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
    border: none;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.address-box {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 2rem;
}

.address-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #111827;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
}

.position-relative {
    position: relative;
}

.autocomplete-results li {
    padding: .7rem 1rem;
    cursor: pointer;
}

.autocomplete-results li:hover {
    background: #f3f4f6;
}

.selected-device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    padding: 1rem;
}

.form-row .seller-item-remove {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    min-width: 0;
}

.seller-item-remove .btn {
    margin-bottom: .25rem;
    white-space: nowrap;
}

.seller-order-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.seller-order-actions .btn {
    margin: 0;
}

#add-seller-item[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .seller-order-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* === PAGINADOR === */
.pagination-container {
    text-align: center;
    margin-top: 2rem;
}

.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease-in-out;
}

.pagination a:hover {
    background-color: #e5e7eb;
    color: #000;
}

.pagination .active a,
.pagination li.active a {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

@media (max-width: 600px) {
    .pagination {
        justify-content: center;
        gap: 0.3rem;
    }

    .pagination a {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }
}


/* === ENCABEZADO DE PÁGINA === */
.page-header {
    max-width: 1000px;
    margin: 2rem auto 1rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.page-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #111827;
}

.page-header .btn {
    white-space: nowrap;
}

/* === TD lista de supplies === */

.supply-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.supply-list li {
    margin-bottom: 0.2rem;
}

/* === BOTÓN CANCELAR === */
.btn.btn-cancel {
    background-color: #dc2626;
    color: white;
    border: none;
}

.btn.btn-cancel:hover {
    background-color: #b91c1c;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 3rem auto;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* o incluso 0.75rem si se sienten muy juntos */
    flex-wrap: wrap;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.btn-icon {
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem; /* Aumentamos un poco el padding */
    line-height: 1;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.btn-icon.btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.btn-icon.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-icon.btn-cancel {
    background-color: #dc2626;
    color: white;
}

.btn-icon.btn-cancel:hover {
    background-color: #b91c1c;
}

.search-container {
    text-align: center;
}

.search-bar {
    display: inline-block;
    width: auto;
}

.search-bar input.form-control {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Dropdown dentro del navbar */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.6rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    background-color: #1b3a61;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    min-width: 180px;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 8px 16px;
    color: white;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #2a5d9e;
}

.navbar .dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    transition: background 0.2s;
    display: inline-block;
}

/* Hover igual al resto */
.navbar .dropdown-toggle:hover {
    background-color: #374151;
    border-radius: 6px;
}

/* Opcional: quitar bordes redondeados y sombreado si se ve demasiado diferente */
.dropdown-menu {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Corrige el alineado para que esté al centro como los otros */
.navbar .dropdown {
    display: flex;
    align-items: center;
    position: relative;
}

.dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.item-form {
    position: relative;
    padding-right: 3rem; /* espacio para botón eliminar */
    background-color: #ffffff;
    border-radius: 8px;
}

.remove-item-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}
.remove-item-btn:hover {
    background-color: #b91c1c;
}

.item-form {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Seller order rows keep the remove action in its own flex column. */
.seller-item-remove .remove-item-btn {
    position: static;
    z-index: auto;
}

.item-form.removed {
    opacity: 0;
    transform: scale(0.95);
}

.btn-success {
    background-color: #10b981; /* verde tipo Tailwind */
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #059669;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 1rem;
    pointer-events: none; /* evita que el ícono bloquee el input */
}

.input-icon-wrapper input {
    padding-left: calc(1em + 24px); /* deja espacio para el icono */
}



/* --- Accesibilidad de texto oculto --- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0;
}

/* Agrupar logo + botón */
.nav-left { display:flex; align-items:center; gap:.75rem; }

/* Botón hamburguesa (oculto en desktop) */
.navbar-toggle {
    display:none; /* se muestra en móvil */
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2);
    background: transparent; color: white; border-radius: 8px; cursor: pointer;
    align-items:center; justify-content:center; padding:0; position: relative;
}
.navbar-toggle span {
    position:absolute; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s, top .2s;
}
.navbar-toggle span:nth-child(1){ top: 12px; }
.navbar-toggle span:nth-child(2){ top: 19px; }
.navbar-toggle span:nth-child(3){ top: 26px; }
.navbar-toggle.is-open span:nth-child(1){ top: 19px; transform: rotate(45deg); }
.navbar-toggle.is-open span:nth-child(2){ opacity: 0; }
.navbar-toggle.is-open span:nth-child(3){ top: 19px; transform: rotate(-45deg); }


/* --- MODO MÓVIL --- */
@media (max-width: 768px){
    .navbar {
        padding: .75rem 1rem;
        gap: .5rem;
        flex-wrap: wrap;                /* permite que el menú baje */
    }

    .navbar .logo { font-size: 1rem; }  /* un pelín más compacto */

    .navbar-toggle { display: inline-flex; }

    /* El menú se oculta por defecto y aparece como bloque vertical */
    .navbar .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: .25rem;
        padding-top: .5rem;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .navbar .nav-links.is-open { display: flex; }

    .navbar .nav-links a,
    .navbar .nav-links form button {
        width: 100%;
        text-align: left;
        padding: .6rem .7rem;
        border-radius: 6px;
    }
}

/* --- MODO DESKTOP (se mantiene como lo tenías) --- */
@media (min-width: 769px){
    .navbar { justify-content: space-between; }
}

/* ==================================================
   LOGIN
   ================================================== */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 2rem 1.25rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    place-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(59, 130, 246, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(16, 185, 129, 0.12),
            transparent 30%
        ),
        linear-gradient(135deg, #111827 0%, #1f2937 55%, #0f172a 100%);
}

.login-page__decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.login-page__decoration--one {
    width: 340px;
    height: 340px;
    top: -180px;
    right: -80px;
}

.login-page__decoration--two {
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: -60px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.25rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-card__header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-card__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #0066cc, #3b82f6);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0, 102, 204, 0.28);
}

.login-card__header h1 {
    margin: 0 0 0.4rem;
    color: #111827;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.login-card__header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.96rem;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
    padding: 0.9rem 1rem;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 0.9rem;
}

.login-alert > i {
    margin-top: 0.15rem;
    color: #dc2626;
}

.login-alert strong,
.login-alert span {
    display: block;
}

.login-alert strong {
    margin-bottom: 0.15rem;
}

.login-form__group {
    margin-bottom: 1.25rem;
}

.login-form__group label {
    margin-bottom: 0.45rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-form__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.login-form__label-row a {
    color: #0066cc;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
}

.login-form__label-row a:hover {
    color: #004a99;
    text-decoration: underline;
}

.login-form__control {
    position: relative;
}

.login-form__control input {
    height: 48px;
    padding: 0.7rem 3rem 0.7rem 2.75rem;
    color: #111827;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    outline: none;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}

.login-form__control input::placeholder {
    color: #9ca3af;
}

.login-form__control input:hover {
    border-color: #9ca3af;
}

.login-form__control input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.login-form__leading-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1rem;
    color: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-form__control:focus-within .login-form__leading-icon {
    color: #0066cc;
}

.login-form__password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-form__password-toggle:hover {
    color: #0066cc;
    background-color: #eaf3ff;
}

.login-form__password-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.login-form__submit {
    width: 100%;
    min-height: 48px;
    margin-top: 0.35rem;
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, #0066cc, #2579d1);
    border: none;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(0, 102, 204, 0.22);
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.login-form__submit:hover {
    background: linear-gradient(135deg, #0057ad, #0066cc);
    box-shadow: 0 11px 22px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.login-form__submit:active {
    box-shadow: 0 5px 12px rgba(0, 102, 204, 0.2);
    transform: translateY(0);
}

.login-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    color: #9ca3af;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.login-card__footer i {
    margin-right: 0.3rem;
    color: #10b981;
}

@media (max-width: 480px) {
    .login-page {
        padding: 1rem;
        align-items: flex-start;
    }

    .login-card {
        margin-top: 1rem;
        padding: 1.6rem 1.25rem;
        border-radius: 15px;
    }

    .login-card__header h1 {
        font-size: 1.6rem;
    }

    .login-form__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .login-form__label-row a {
        margin: -0.2rem 0 0.5rem;
    }
}

/* ==================================================
   RECUPERACIÓN DE CONTRASEÑA
   ================================================== */

.login-form__errors {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    color: #b91c1c;
    font-size: 0.84rem;
    line-height: 1.4;
}

.login-form__errors > i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.login-form__errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-form__help {
    margin: 0.55rem 0 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.4;
}

.login-card__secondary-action {
    margin-top: 1.25rem;
    text-align: center;
}

.login-card__secondary-action a {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.login-card__secondary-action a:hover {
    color: #004a99;
    text-decoration: underline;
}

.login-card__icon--success {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.28);
}

.reset-information {
    margin-bottom: 1.25rem;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: #1e3a5f;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
}

.reset-information__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    background: #dbeafe;
    border-radius: 9px;
}

.reset-information strong {
    font-size: 0.9rem;
}

.reset-information p {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.45;
}

.reset-instructions {
    margin-bottom: 1.4rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.reset-instructions h2 {
    margin: 0 0 0.65rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.reset-instructions ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #6b7280;
    font-size: 0.83rem;
    line-height: 1.65;
}

.login-form__submit--link {
    box-sizing: border-box;
    text-decoration: none;
}

.login-form__submit--link:hover {
    color: #ffffff;
    text-decoration: none;
}

.password-recommendations {
    margin: -0.25rem 0 1.25rem;
    padding: 0.75rem 0.85rem;
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 9px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.password-recommendations i {
    margin-top: 0.12rem;
    color: #0066cc;
}

/* ==================================================
   VALIDACIÓN DE CONTRASEÑA
   ================================================== */

.login-card--password-reset {
    max-width: 460px;
}

.password-feedback {
    margin: 0 0 1.35rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.password-feedback__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #374151;
    font-size: 0.86rem;
    font-weight: 600;
}

.password-feedback__strength {
    font-size: 0.82rem;
}

.password-feedback__strength[data-strength="is-pending"] {
    color: #6b7280;
}

.password-feedback__strength[data-strength="is-weak"] {
    color: #dc2626;
}

.password-feedback__strength[data-strength="is-medium"] {
    color: #d97706;
}

.password-feedback__strength[data-strength="is-strong"] {
    color: #059669;
}

.password-feedback__bar {
    height: 5px;
    margin: 0.65rem 0 0.9rem;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.password-feedback__bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #9ca3af;
    border-radius: inherit;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.password-feedback__bar span[data-strength="is-weak"] {
    background: #ef4444;
}

.password-feedback__bar span[data-strength="is-medium"] {
    background: #f59e0b;
}

.password-feedback__bar span[data-strength="is-strong"] {
    background: #10b981;
}

.password-feedback__rules {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.8rem;
    list-style: none;
}

.password-feedback__rules li {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.79rem;
    line-height: 1.35;
    transition: color 0.2s;
}

.password-feedback__rules li i {
    width: 14px;
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 0.72rem;
}

.password-feedback__rules li[data-rule-status="valid"] {
    color: #047857;
}

.password-feedback__rules li[data-rule-status="valid"] i {
    color: #10b981;
}

.password-feedback__rules li[data-rule-status="invalid"] {
    color: #9ca3af;
}

.password-feedback__match {
    margin: 0.9rem 0 0;
    padding-top: 0.8rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.82rem;
    border-top: 1px solid #e5e7eb;
}

.password-feedback__match[data-match="match"] {
    color: #047857;
}

.password-feedback__match[data-match="mismatch"] {
    color: #b91c1c;
}

.login-form__errors--general {
    margin: -0.4rem 0 1rem;
}

.login-form__submit:disabled {
    color: #9ca3af;
    background: #e5e7eb;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.login-form__submit:disabled:hover {
    color: #9ca3af;
    background: #e5e7eb;
    box-shadow: none;
    transform: none;
}

@media (max-width: 480px) {
    .password-feedback__rules {
        grid-template-columns: 1fr;
    }
}
