/* Fullmedia AUTH — shared compact login panel. */
.fm-auth-panel.offcanvas {
    --bs-offcanvas-width: min(100vw, 400px);
    --bs-offcanvas-bg: #f2f6fc;
    --bs-offcanvas-color: #14213d;
    border: 0;
    box-shadow: none;
}
.fm-auth-panel .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 18px 24px;
    background: linear-gradient(110deg, #10213e, #204d91);
    border: 0;
}
.fm-auth-panel .offcanvas-header::before,
.fm-auth-panel .offcanvas-header::after,
.fm-auth-panel .authorize-username::before { content: none; display: none; }
.fm-auth-panel .offcanvas-title {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}
.fm-auth-panel .offcanvas-header .btn-close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    position: relative;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    filter: none;
}
.fm-auth-panel .btn-close::before,
.fm-auth-panel .btn-close::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 2px;
    border-radius: 1px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
}
.fm-auth-panel .btn-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.fm-auth-panel .btn-close:hover { background-color: rgba(255,255,255,.12); }
.fm-auth-panel .btn-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fm-auth-panel .offcanvas-body {
    padding: 24px;
    background: #f2f6fc;
}
.fm-auth-panel .authorize-text {
    margin: 0 0 26px;
    color: #596780;
    font-size: .875rem;
    line-height: 1.6;
    white-space: pre-line;
}
.fm-auth-panel .authorize-text span + span { margin-top: 4px; }
.fm-auth-panel .contact-field { margin-bottom: 20px; }
.fm-auth-panel .contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #14213d;
    font-size: .9375rem;
    font-weight: 600;
}
.fm-auth-panel .contact-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #f2f6fc;
    box-shadow: none;
    color: #14213d;
}
.fm-auth-panel .contact-field input:focus {
    border-color: #4275d7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66,117,215,.15);
}
.fm-auth-panel .contact-notice {
    border: 1px solid #f0c26b;
    border-radius: 10px;
    background: #fffaf0;
    color: #765117;
}
.fm-auth-panel .fm-auth-primary {
    width: 100%;
    min-height: 49px;
    margin-top: 0;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, #2465cd, #6655ff);
    box-shadow: none;
    color: #fff;
    font-weight: 700;
}
.fm-auth-panel .fm-auth-primary:hover:not(:disabled) { filter: brightness(.95); }
.fm-auth-panel .fm-auth-primary:focus-visible { outline: 2px solid #204d91; outline-offset: 3px; }
.fm-auth-panel .fm-auth-code { letter-spacing: .35em; font-size: 1.4rem; }
.fm-auth-panel [hidden] { display: none !important; }
@media (max-width: 360px) {
    .fm-auth-panel .offcanvas-header, .fm-auth-panel .offcanvas-body { padding-left: 18px; padding-right: 18px; }
}
