/* Centered single-card auth pages (password reset, etc.) — simpler
   alternative to the full split-screen #auth layout used by login. */
.auth-card-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: url(../images/fondo-login.png) center center / cover no-repeat, #eef3f9;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

/* Two-column variant: form on one side, illustration on the other,
   inside a single rounded card (kept separate from .auth-card so its
   wider max-width doesn't clash). */
.auth-card-split {
    width: 100%;
    max-width: 920px;
}

.auth-card-split-image {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    display: block;
}

/* Full-bleed right panel for the classic edge-to-edge #auth layout —
   fills #auth-right entirely instead of the theme's centered/contained
   .auth-right-image. */
.auth-right-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating card for #auth-left: tints its background and centers a
   white card around the form, instead of the form sitting flush on
   the plain page background. */
.auth-left-tinted {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(10, 126, 120, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(10, 126, 120, 0.08) 0%, transparent 45%),
        #eef3f9;
}

.auth-left-card {
    width: 100%;
    max-width: 420px;
}

/* Wider card + title kept on a single line (long titles, e.g. password reset). */
.auth-left-card--wide {
    max-width: 540px;
}

.auth-title--single-line {
    white-space: nowrap;
    font-size: clamp(0.95rem, 4.4vw, 1.2rem) !important;
}

.auth-card-logo {
    display: block;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.5px;
    color: #0A7E78;
}

/* Show/hide toggle button placed inside a password field, opposite a
   left-side icon added via has-icon-left (kept separate from the
   theme's has-icon-right so it doesn't fight over .form-control-icon
   positioning when a field has both). */
.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 0 0.6rem;
    cursor: pointer;
    color: #adb5bd;
}

.password-toggle-icon i {
    font-size: 1.2rem;
}

.form-control.has-eye-toggle {
    padding-right: 2.5rem;
}

/* Wider variant of .auth-card for pages with longer copy (terms acceptance). */
.auth-card-wide {
    max-width: 560px;
}

.auth-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0A7E78;
    background: rgba(10, 126, 120, 0.12);
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(10, 126, 120, 0.2);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s, border-color 0.15s;
}

.legal-link:hover {
    background: rgba(10, 126, 120, 0.06);
    border-color: #0A7E78;
}

.legal-link > i:first-child {
    font-size: 1.4rem;
    color: #0A7E78;
}

.legal-link > i:last-child {
    margin-left: auto;
    color: #adb5bd;
}

/* Bootstrap Icons ship with a -.125em baseline offset on ::before, which
   pushes glyphs off-center inside flex containers; neutralize it here. */
.auth-icon-badge i,
.legal-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-icon-badge i::before,
.legal-link i::before {
    vertical-align: 0;
}

.legal-link > span {
    line-height: 1.3;
}

/* Long-form legal pages (terms, privacy policy): one readable card that
   stays comfortable on phones. */
.auth-card-wrap.legal-page-wrap {
    align-items: flex-start;
    padding: 32px 16px;
}

.legal-card {
    width: 100%;
    max-width: 820px;
    padding: 2.5rem 3rem;
}

.legal-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(10, 126, 120, 0.15);
}

.legal-header .auth-card-logo {
    text-decoration: none;
}

.legal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.75rem 0 0.6rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0A7E78;
}

.legal-body > .legal-section-title:first-child {
    margin-top: 0;
}

.legal-body p {
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
    .auth-card-wrap.legal-page-wrap {
        padding: 12px 8px;
    }

    .legal-card {
        padding: 1.5rem 1.1rem;
        border-radius: 1rem !important;
    }

    .legal-header .auth-card-logo {
        font-size: 1.6rem;
    }

    .legal-header .auth-title {
        font-size: 1.25rem !important;
    }

    .legal-section-title {
        font-size: 1rem;
        margin-top: 1.4rem;
    }

    .legal-body p {
        font-size: 0.95rem;
        line-height: 1.65;
        text-align: left;
        overflow-wrap: anywhere;
    }
}
