/* ===== Friverden Media — Auth shell (standalone) ===== */

.fvm-auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.fvm-auth,
.fvm-auth *,
.fvm-auth *::before,
.fvm-auth *::after {
    box-sizing: border-box;
}

.fvm-auth {
    --fvm-auth-primary: var(--primary-color, #1B4F9C);
    --fvm-auth-accent: var(--accent-color, #00ADEF);
    --fvm-auth-dark: var(--secondary-color, #0B1B33);
    --fvm-auth-text: var(--text-color, #1a1a2e);
    --fvm-auth-muted: #64748b;
    --fvm-auth-border: var(--border-color, #e5e7eb);
    --fvm-auth-radius: var(--border-radius, 8px);
    --fvm-auth-font: var(--body-font, 'Inter', sans-serif);
    --fvm-auth-heading: var(--heading-font, 'Sora', 'Inter', sans-serif);

    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    font-family: var(--fvm-auth-font);
    color: var(--fvm-auth-text);
    animation: fvm-auth-fade 0.4s ease-out both;
}

@keyframes fvm-auth-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fvm-auth-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Visual panel */
.fvm-auth__visual {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: var(--fvm-auth-dark);
}

.fvm-auth__visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.fvm-auth__visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(11, 27, 51, 0.78) 0%, rgba(27, 79, 156, 0.5) 55%, rgba(0, 173, 239, 0.32) 100%);
}

.fvm-auth__visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #fff;
}

.fvm-auth__visual-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 26rem;
    margin-top: clamp(1rem, 6vh, 3.5rem);
    animation: fvm-auth-rise 0.55s 0.1s ease-out both;
}

.fvm-auth__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.fvm-auth__visual-title {
    margin: 0;
    font-family: var(--fvm-auth-heading, 'Sora', 'Inter', sans-serif);
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.fvm-auth__visual-lead {
    margin: 0;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    max-width: 22rem;
}

.fvm-auth__benefits {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fvm-auth__benefits li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.fvm-auth__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(0, 173, 239, 0.18);
    color: #7dd8f8;
    border: 1px solid rgba(125, 216, 248, 0.28);
}

/* News title ticker (user auth visual) */
.fvm-auth__news {
    margin-top: 1.15rem;
    max-width: 22rem;
}

.fvm-auth__news-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(125, 216, 248, 0.95);
}

.fvm-auth__news-live {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #00ADEF;
    box-shadow: 0 0 0 0 rgba(0, 173, 239, 0.55);
    animation: fvm-auth-pulse 1.8s ease-out infinite;
}

@keyframes fvm-auth-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 173, 239, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(0, 173, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 173, 239, 0); }
}

.fvm-auth__news-viewport {
    position: relative;
    overflow: hidden;
    min-height: 4.75rem;
}

.fvm-auth__news-track {
    position: relative;
}

.fvm-auth__news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.65rem);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    pointer-events: none;
}

.fvm-auth__news-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.fvm-auth__news-item:not(.is-active) {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
}

.fvm-auth__news-cat {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.fvm-auth__news-title {
    display: block;
    font-family: "Sora", system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.96);
    transition: color 0.2s ease;
}

.fvm-auth__news-item:hover .fvm-auth__news-title,
.fvm-auth__news-item:focus-visible .fvm-auth__news-title {
    color: #7dd8f8;
}

.fvm-auth__news-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.fvm-auth__news-dot {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.fvm-auth__news-dot.is-active {
    width: 1.1rem;
    background: #00ADEF;
}

.fvm-auth__news-dot:focus-visible {
    outline: 2px solid #7dd8f8;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .fvm-auth__news-live {
        animation: none;
    }

    .fvm-auth__news-item {
        transition: none;
    }
}

.fvm-auth__visual-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fvm-auth__brand-logo {
    display: inline-block;
    max-width: 190px;
    animation: fvm-auth-rise 0.5s 0.18s ease-out both;
}

.fvm-auth__brand-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.fvm-auth__brand-tagline {
    margin: 0;
    max-width: 22rem;
    font-size: clamp(0.9rem, 1.15vw, 1.05rem);
    line-height: 1.45;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    animation: fvm-auth-rise 0.5s 0.24s ease-out both;
}

/* Form panel */
.fvm-auth__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 1.25rem;
    background: #fff;
    min-height: 100%;
    position: relative;
}

.fvm-auth__panel-inner {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fvm-auth-rise 0.45s 0.06s ease-out both;
}

.fvm-auth__copyright {
    margin: 1.5rem 0 0;
    padding: 0;
    width: 100%;
    max-width: 420px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
    flex-shrink: 0;
}

.fvm-auth__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.fvm-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fvm-auth-muted) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fvm-auth__back:hover {
    color: var(--fvm-auth-primary) !important;
}

.fvm-auth__langs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid var(--fvm-auth-border);
    border-radius: 999px;
    background: #f8fafc;
}

.fvm-auth__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 1.75rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fvm-auth-muted) !important;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fvm-auth__lang:hover {
    color: var(--fvm-auth-primary) !important;
}

.fvm-auth__lang.is-active {
    background: var(--fvm-auth-primary);
    color: #fff !important;
}

.fvm-auth__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(27, 79, 156, 0.1);
    color: var(--fvm-auth-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fvm-auth__heading {
    margin-bottom: 1.5rem;
}

.fvm-auth__heading h1 {
    margin: 0 0 0.4rem;
    font-family: var(--fvm-auth-heading);
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fvm-auth-dark);
    line-height: 1.25;
}

.fvm-auth__heading p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--fvm-auth-muted);
}

/* Fields — boxed, not underline (override theme leftovers) */
.fvm-auth__form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.fvm-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fvm-auth__field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fvm-auth-dark);
}

.fvm-auth__field input,
.fvm-auth .fvm-auth__field input[type="text"],
.fvm-auth .fvm-auth__field input[type="email"],
.fvm-auth .fvm-auth__field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--fvm-auth-border) !important;
    border-radius: var(--fvm-auth-radius) !important;
    border-bottom: 1px solid var(--fvm-auth-border) !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
    color: var(--fvm-auth-text) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fvm-auth__field input::placeholder {
    color: #94a3b8;
}

.fvm-auth__field input:focus {
    outline: none !important;
    border-color: var(--fvm-auth-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.16) !important;
}

.fvm-auth__password {
    position: relative;
}

.fvm-auth__password input {
    padding-right: 2.75rem !important;
}

.fvm-auth__password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fvm-auth-muted);
    cursor: pointer;
    border-radius: 6px;
}

.fvm-auth__password-toggle:hover {
    color: var(--fvm-auth-primary);
    background: rgba(27, 79, 156, 0.06);
}

.fvm-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fvm-auth__actions {
    margin-top: 0.35rem;
}

.fvm-auth__check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    color: var(--fvm-auth-muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.fvm-auth__check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--fvm-auth-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.fvm-auth__forgot {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fvm-auth-accent) !important;
    text-decoration: none;
    white-space: nowrap;
}

.fvm-auth__forgot:hover {
    color: var(--fvm-auth-primary) !important;
}

.fvm-auth__actions {
    margin-top: 0.15rem;
}

.fvm-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 1.25rem;
    border: none;
    border-radius: var(--fvm-auth-radius);
    background: var(--gradient-primary, linear-gradient(135deg, #1B4F9C 0%, #00ADEF 100%));
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(27, 79, 156, 0.25);
}

.fvm-auth__submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    color: #fff !important;
}

.fvm-auth__submit:active {
    transform: translateY(0);
}

.fvm-auth__recaptcha {
    margin-top: 0.15rem;
}

/* Divider + social */
.fvm-auth__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 0.9rem;
    color: var(--fvm-auth-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.fvm-auth__divider::before,
.fvm-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fvm-auth-border);
}

.fvm-auth__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
}

.fvm-auth__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 140px;
    height: 46px;
    padding: 0 0.75rem;
    border: 1px solid var(--fvm-auth-border) !important;
    border-radius: var(--fvm-auth-radius);
    background: #fff !important;
    color: var(--fvm-auth-dark) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fvm-auth__social-btn:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: var(--fvm-auth-dark) !important;
}

/* Switch account — NOT a site footer */
.fvm-auth__footer {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--fvm-auth-border);
    background: transparent !important;
    text-align: center;
    font-size: 0.9rem;
    color: var(--fvm-auth-muted);
}

.fvm-auth__footer p {
    margin: 0;
}

.fvm-auth__footer a {
    font-weight: 600;
    color: var(--fvm-auth-primary) !important;
    text-decoration: none;
}

.fvm-auth__footer a:hover {
    color: var(--fvm-auth-accent) !important;
}

.fvm-auth__link-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fvm-auth-muted);
    cursor: pointer;
    text-align: center;
}

.fvm-auth__link-btn:hover {
    color: var(--fvm-auth-primary);
}

/* Forgot-password modal */
.fvm-auth-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(11, 27, 51, 0.18);
}

.fvm-auth-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.5rem;
    border-bottom: none;
}

.fvm-auth-modal__logo img {
    max-height: 36px;
    width: auto;
}

.fvm-auth-modal .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.fvm-auth-modal__title {
    margin: 0 0 0.5rem;
    font-family: var(--fvm-auth-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fvm-auth-dark);
}

.fvm-auth-modal__text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--fvm-auth-muted);
    line-height: 1.5;
}

/* Neutralize theme footer rules if custom-theme is loaded */
.fvm-auth-body footer,
.fvm-auth-body .fvm-auth__footer {
    background: transparent !important;
    color: inherit !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .fvm-auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .fvm-auth__visual {
        min-height: 220px;
        max-height: none;
    }

    .fvm-auth__visual-content {
        justify-content: flex-end;
        padding: 1.15rem 1.35rem 1.25rem;
        gap: 0.85rem;
    }

    .fvm-auth__visual-main {
        display: block;
    }

    .fvm-auth__eyebrow,
    .fvm-auth__visual-title,
    .fvm-auth__visual-lead,
    .fvm-auth__benefits {
        display: none;
    }

    .fvm-auth__news {
        margin-top: 0;
        max-width: none;
    }

    .fvm-auth__news-viewport {
        min-height: 3.25rem;
    }

    .fvm-auth__news-title {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fvm-auth__brand-logo {
        max-width: 130px;
    }

    .fvm-auth__brand-tagline {
        display: none;
    }

    .fvm-auth__panel {
        align-items: flex-start;
        padding: 1.5rem 1.15rem 2.25rem;
    }
}

@media (max-width: 480px) {
    .fvm-auth__visual {
        min-height: 200px;
        max-height: none;
    }

    .fvm-auth__row {
        flex-wrap: wrap;
    }

    .fvm-auth__panel-inner {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fvm-auth,
    .fvm-auth__brand-logo,
    .fvm-auth__brand-tagline,
    .fvm-auth__panel-inner {
        animation: none !important;
    }
}
