/* ============================================================
   vomFASS LOGIN — Premium Glassmorphism Redesign
   Deep emerald gradient · Soft glow · Inspired by Linear/Stripe/Apple
   ============================================================ */

/* === RESET WordPress Defaults === */
body.vfk-login-modern,
body.login {
    margin: 0;
    padding: 0;
    background: #0A1F1B;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgba(255, 255, 255, 0.92);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login #login {
    width: auto;
    padding: 0;
    margin: 0;
}

body.login #backtoblog,
body.login #login h1 { display: none; }

body.login p.message,
body.login #login_error,
body.login #login_notice {
    margin: 0 0 18px;
    padding: 12px 16px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 12px;
    color: #FCA5A5;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: vfkSlideInError 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.login p.message {
    background: rgba(94, 234, 212, 0.08);
    border-color: rgba(94, 234, 212, 0.25);
    color: #5EEAD4;
    box-shadow: 0 4px 16px rgba(94, 234, 212, 0.06);
}

@keyframes vfkSlideInError {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STAGE & GRID
   ============================================================ */
.vfk-login-stage {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vfk-login-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    position: relative;
    z-index: 2;
    min-height: 0;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.vfk-login-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.vfk-login-bg__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 30%, #103D33 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, #0E4B43 0%, transparent 50%),
        linear-gradient(135deg, #061814 0%, #0A1F1B 35%, #0E2924 70%, #082420 100%);
}

.vfk-login-bg__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: vfkFloat 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.vfk-login-bg__glow--1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, #14B8A6 0%, transparent 70%);
}

.vfk-login-bg__glow--2 {
    width: 620px;
    height: 620px;
    bottom: -180px;
    right: -100px;
    background: radial-gradient(circle, #0D9488 0%, transparent 70%);
    animation-delay: -6s;
    animation-duration: 22s;
}

.vfk-login-bg__glow--3 {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(94, 234, 212, 0.18) 0%, transparent 70%);
    animation-delay: -12s;
    animation-duration: 28s;
    opacity: 0.6;
}

@keyframes vfkFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.05); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

.vfk-login-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    pointer-events: none;
}

/* ============================================================
   LEFT: BRANDING
   ============================================================ */
.vfk-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    position: relative;
    z-index: 3;

    /* Initial state für Animation */
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.15s;
}
body[data-vfk-login-ready="true"] .vfk-login-brand {
    opacity: 1;
    transform: translateX(0);
}

.vfk-login-brand__top {
    display: flex;
    align-items: center;
}

.vfk-login-brand__logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.vfk-login-brand__logo-fallback {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* Center: Logo + Hero "FASS" Text */
.vfk-login-brand__center {
    margin: auto 0;
}

.vfk-login-brand__lockup {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.vfk-login-brand__lockup-logo {
    height: 96px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    /* Sanftes Pulsen */
    animation: vfkLogoPulse 4s ease-in-out infinite;
}

@keyframes vfkLogoPulse {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.02); filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(94, 234, 212, 0.4)); }
}

.vfk-login-brand__hero {
    font-size: clamp(120px, 14vw, 220px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #B8E5DF 70%, #5EEAD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 80px rgba(94, 234, 212, 0.15);
    position: relative;
}

.vfk-login-brand__subtitle {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vfk-login-brand__pitch {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0;
    font-weight: 400;
}

/* Features unten */
.vfk-login-brand__features {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.vfk-login-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.vfk-login-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(94, 234, 212, 0.3);
    transform: translateY(-2px);
}
.vfk-login-feature__icon {
    color: #5EEAD4;
    display: inline-flex;
}

/* ============================================================
   RIGHT: LOGIN PANE + CARD
   ============================================================ */
.vfk-login-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 64px 32px 32px;
    position: relative;
    z-index: 3;
}

.vfk-login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 48px 44px 36px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 64px -16px rgba(0, 0, 0, 0.5),
        0 16px 32px -16px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(20, 184, 166, 0.08);
    position: relative;
    overflow: hidden;

    /* Initial state */
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}
body[data-vfk-login-ready="true"] .vfk-login-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Sehr subtiler Top-Glow auf der Card */
.vfk-login-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Logout-Animation: Card weg-sliden */
.vfk-login-card.is-leaving {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition:
        opacity 0.55s cubic-bezier(0.7, 0, 0.84, 0),
        transform 0.55s cubic-bezier(0.7, 0, 0.84, 0);
}

.vfk-login-card__head {
    margin-bottom: 30px;
}

.vfk-login-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.vfk-login-card__lead {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   WP-FORM RESTYLE (innerhalb unserer Card)
   ============================================================ */
.vfk-login-card__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vfk-login-card__form #loginform {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vfk-login-card__form p {
    margin: 0;
    padding: 0;
}

.vfk-login-card__form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}

.vfk-login-card__form input[type="text"],
.vfk-login-card__form input[type="email"],
.vfk-login-card__form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.3s;
    outline: none;
    box-shadow: none;
}

.vfk-login-card__form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.vfk-login-card__form input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Focus glow */
.vfk-login-card__form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(94, 234, 212, 0.55);
    box-shadow:
        0 0 0 4px rgba(94, 234, 212, 0.12),
        0 0 24px rgba(94, 234, 212, 0.15);
}

/* WP's password-input mit visibility-toggle */
.vfk-login-card__form .user-pass-wrap {
    position: relative;
}
.vfk-login-card__form .wp-pwd {
    position: relative;
}
.vfk-login-card__form .wp-pwd input {
    padding-right: 48px !important;
}
.vfk-login-card__form .wp-pwd button.wp-hide-pw,
.vfk-login-card__form button.button.wp-hide-pw {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
    border-radius: 8px !important;
    transition: color 0.2s, background 0.2s;
}
.vfk-login-card__form .wp-pwd button.wp-hide-pw:hover {
    color: #5EEAD4 !important;
    background: rgba(94, 234, 212, 0.08) !important;
}
.vfk-login-card__form .wp-pwd button .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

/* Remember-me + Submit Row */
.vfk-login-card__form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}
.vfk-login-card__form .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    user-select: none;
    letter-spacing: 0;
    font-weight: 400;
}
.vfk-login-card__form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
    margin: 0;
}
.vfk-login-card__form input[type="checkbox"]:hover {
    border-color: rgba(94, 234, 212, 0.6);
}
.vfk-login-card__form input[type="checkbox"]:checked {
    background: #14B8A6;
    border-color: #14B8A6;
}
.vfk-login-card__form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit-Button */
.vfk-login-card__form .submit {
    margin: 8px 0 0;
}
.vfk-login-card__form #wp-submit,
.vfk-login-card__form input[type="submit"].button.button-primary {
    width: 100%;
    padding: 16px;
    height: auto !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 60%, #0F766E 100%);
    border: 0;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 8px 24px -8px rgba(20, 184, 166, 0.6),
        0 0 40px rgba(20, 184, 166, 0.15);
    transition:
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s,
        filter 0.2s;
    text-shadow: none;
    text-transform: none;
}
.vfk-login-card__form #wp-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 12px 32px -8px rgba(20, 184, 166, 0.7),
        0 0 60px rgba(20, 184, 166, 0.25);
}
.vfk-login-card__form #wp-submit:active {
    transform: translateY(0);
}
.vfk-login-card__form #wp-submit:focus {
    outline: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 0 4px rgba(94, 234, 212, 0.2),
        0 12px 32px -8px rgba(20, 184, 166, 0.6);
}

/* Loading-State */
.vfk-login-card__form #wp-submit.is-loading {
    cursor: wait;
    color: transparent;
    pointer-events: none;
}
.vfk-login-card__form #wp-submit.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vfkSpin 0.7s linear infinite;
}
@keyframes vfkSpin {
    to { transform: rotate(360deg); }
}

/* "Passwort vergessen?" Link unter der Form (WP rendert das in #nav) */
.vfk-login-card__form #nav {
    margin: 14px 0 0;
    padding: 0;
    text-align: center;
    font-size: 13px;
}
.vfk-login-card__form #nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.vfk-login-card__form #nav a:hover {
    color: #5EEAD4;
}

/* ============================================================
   CARD-FOOT: Language Switcher
   ============================================================ */
.vfk-login-card__foot {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.vfk-lang-switcher {
    position: relative;
}
.vfk-lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.vfk-lang-switcher__btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}
.vfk-lang-switcher__chevron {
    transition: transform 0.2s;
    font-size: 10px;
    opacity: 0.6;
}
.vfk-lang-switcher[data-vfk-lang-open="true"] .vfk-lang-switcher__chevron {
    transform: rotate(180deg);
}
.vfk-lang-switcher__list {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(20, 30, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    list-style: none;
    min-width: 140px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.vfk-lang-switcher[data-vfk-lang-open="true"] .vfk-lang-switcher__list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.vfk-lang-switcher__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.vfk-lang-switcher__list li:hover {
    background: rgba(94, 234, 212, 0.1);
    color: #5EEAD4;
}

/* ============================================================
   FOOTER-STRIP unten
   ============================================================ */
.vfk-login-footer-strip {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 18px 32px 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    opacity: 0;
    transition: opacity 1s ease;
    transition-delay: 0.8s;
}
body[data-vfk-login-ready="true"] .vfk-login-footer-strip {
    opacity: 1;
}
.vfk-login-footer-strip__sep {
    opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .vfk-login-grid {
        grid-template-columns: 1fr;
    }
    .vfk-login-brand {
        padding: 32px;
        min-height: auto;
    }
    .vfk-login-brand__center { margin: 32px 0; }
    .vfk-login-brand__lockup { gap: 20px; }
    .vfk-login-brand__lockup-logo { height: 64px; }
    .vfk-login-brand__hero { font-size: clamp(80px, 18vw, 140px); }
    .vfk-login-brand__pitch { font-size: 15px; }
    .vfk-login-pane {
        padding: 16px 24px 24px;
    }
    .vfk-login-stage { position: relative; }
}

@media (max-width: 640px) {
    .vfk-login-brand__features {
        flex-direction: column;
        gap: 8px;
    }
    .vfk-login-card {
        padding: 36px 28px 28px;
    }
    .vfk-login-card__title { font-size: 24px; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .vfk-login-bg__glow,
    .vfk-login-brand__lockup-logo {
        animation: none;
    }
    .vfk-login-brand,
    .vfk-login-card,
    .vfk-login-footer-strip {
        transition: none;
    }
}
