/* ══════════════════════════════════════════════════
   SINAC — Auth pages (login, register, forgot password)
   Used in: base_notlogin.html.twig
   ══════════════════════════════════════════════════ */

html,
body {
    height: 100%;
}
body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ── intl-tel-input : même taille que form-control-lg ── */
.iti { width: 100% !important; }
.iti input.form-control,
.iti input.form-control-lg {
    width: 100% !important;
    height: calc(1.5em + 1rem + 2px);
}

/* ── select2 : même taille que form-control-lg ── */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 1rem + 2px) !important;
    padding: .5rem .75rem;
    font-size: 1.025rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* ── Auth card logo ── */
.auth-logo {
    width: 200px;
    height: auto;
}

/* ── Auth card footer ── */
.auth-card-footer {
    padding: 1.2rem 1.5rem;
}
.auth-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}
.auth-footer-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.auth-forgot-link {
    color: var(--c-primary, #097a91);
    font-size: .85rem;
    text-decoration: none;
}
.auth-forgot-link:hover {
    text-decoration: underline;
}
.auth-copyright {
    color: #999;
    font-size: .75rem;
    margin-bottom: 0;
}
.auth-copyright a {
    color: inherit;
    text-decoration: underline;
}

/* ── Lazy Loading Animation ── */
img:not(.no-lazy) {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.02);
    transition: opacity .6s cubic-bezier(.4,0,.2,1),
                filter .7s cubic-bezier(.4,0,.2,1),
                transform .6s cubic-bezier(.4,0,.2,1);
}
img.sinac-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.sinac-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: sinacShimmer 1.5s linear infinite;
    border-radius: inherit;
}
.sinac-img-wrap.sinac-img-ready {
    background: none;
    animation: none;
}
@keyframes sinacShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
