/* DigiMenu Admin — Giriş sayfası (bağımsız stil dosyası) */

:root {
    --auth-primary: #0d9488;
    --auth-primary-hover: #0f766e;
    --auth-primary-soft: #ccfbf1;
    --auth-primary-muted: #5eead4;
    --auth-accent: #f59e0b;
    --auth-accent-soft: #fef3c7;
    --auth-bg: #ecfeff;
    --auth-surface: #ffffff;
    --auth-text: #134e4a;
    --auth-text-muted: #5b7c78;
    --auth-border: #a7f3d0;
    --auth-border-focus: #14b8a6;
    --auth-danger: #dc2626;
    --auth-danger-bg: #fef2f2;
    --auth-success: #059669;
    --auth-radius: 14px;
    --auth-radius-lg: 24px;
    --auth-shadow: 0 25px 50px -12px rgba(13, 148, 136, 0.22);
    --auth-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --auth-input-h: 48px;
    --auth-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100dvh;
}

body {
    font-family: var(--auth-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--auth-text);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}

body.body-loading {
    overflow: hidden;
}

body.body-loading .login-page {
    opacity: 0;
}

body.auth-ready .login-page {
    opacity: 1;
    transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ——— Sayfa iskeleti ——— */

.login-page {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(20, 184, 166, 0.2), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(245, 158, 11, 0.12), transparent 50%),
        linear-gradient(160deg, #f0fdfa 0%, #ecfeff 40%, #f8fafc 100%);
}

/* Uçan parçacıklar */
.login-page__particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.35);
    animation: particleFloat 14s ease-in-out infinite;
}

.login-particle:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; width: 6px; height: 6px; }
.login-particle:nth-child(2) { left: 85%; top: 15%; animation-delay: -2s; background: rgba(245, 158, 11, 0.4); }
.login-particle:nth-child(3) { left: 72%; top: 70%; animation-delay: -4s; width: 10px; height: 10px; }
.login-particle:nth-child(4) { left: 15%; top: 75%; animation-delay: -6s; }
.login-particle:nth-child(5) { left: 45%; top: 10%; animation-delay: -8s; width: 5px; height: 5px; background: rgba(94, 234, 212, 0.5); }
.login-particle:nth-child(6) { left: 55%; top: 88%; animation-delay: -10s; background: rgba(245, 158, 11, 0.35); }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(12px, -28px) scale(1.15); opacity: 0.7; }
    50% { transform: translate(-8px, -50px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(20px, -20px) scale(1.05); opacity: 0.65; }
}

.login-page .lp-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1080px;
    min-height: min(640px, calc(100dvh - 32px));
    background: var(--auth-surface);
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    animation: authFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition:
        max-width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.5s ease,
        transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (min-width: 900px) {
    .login-page .lp-wrapper {
        grid-template-columns: minmax(280px, 1fr) minmax(400px, 1.05fr);
    }

    /* Kayıt: kart ve form paneli yana genişler */
    .login-page .lp-wrapper.lp-wrapper--register {
        max-width: 1360px;
        grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.35fr);
        box-shadow:
            0 32px 64px -16px rgba(13, 148, 136, 0.28),
            0 0 0 1px rgba(20, 184, 166, 0.08);
        transform: scale(1.008);
    }

    .login-page.scene-register {
        padding: 12px 8px;
    }
}

@media (min-width: 1200px) {
    .login-page .lp-wrapper.lp-wrapper--register {
        max-width: 1480px;
        grid-template-columns: minmax(320px, 0.72fr) minmax(580px, 1.42fr);
    }
}

/* ——— Sol marka paneli ——— */

.login-page .lp-left-bg {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px 36px;
    background: linear-gradient(155deg, #022c22 0%, #0d9488 42%, #0f766e 72%, #134e4a 100%);
    overflow: hidden;
}

.login-page .lp-left-bg::before,
.login-page .lp-left-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page .lp-left-bg::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
    background: rgba(255, 255, 255, 0.06);
}

.login-page .lp-left-bg::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -40px;
    background: rgba(245, 158, 11, 0.12);
    animation: orbPulse 8s ease-in-out infinite;
}

/* QR ızgara arka plan */
.lp-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: gridDrift 20s linear infinite;
    pointer-events: none;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(28px, 28px); }
}

.lp-bg-orbs .lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.lp-orb--1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: -20%;
    background: rgba(94, 234, 212, 0.25);
    animation: orbFloat1 12s ease-in-out infinite;
}

.lp-orb--2 {
    width: 140px;
    height: 140px;
    bottom: 15%;
    right: -10%;
    background: rgba(245, 158, 11, 0.2);
    animation: orbFloat2 10s ease-in-out infinite;
}

.lp-orb--3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 40%;
    background: rgba(255, 255, 255, 0.08);
    animation: orbFloat3 14s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -15px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.2); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Telefon + QR hero */
.lp-hero-visual {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    margin: 0 auto 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.lp-phone {
    position: relative;
    width: 180px;
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 28px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: phoneFloat 5s ease-in-out infinite;
}

.lp-phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 6px;
    background: #0f172a;
    border-radius: 0 0 8px 8px;
    z-index: 3;
}

.lp-phone__screen {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #f0fdfa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-qr-animated {
    width: 88%;
    height: auto;
    display: block;
    animation: qrGlow 3s ease-in-out infinite;
}

@keyframes qrGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.25)); }
    50% { filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.4)); }
}

.lp-phone__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    animation: phoneShine 4s ease-in-out infinite;
    border-radius: 28px;
    pointer-events: none;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes phoneShine {
    0%, 100% { left: -100%; }
    50% { left: 120%; }
}

.lp-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #134e4a;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.lp-float-badge--menu {
    top: -8px;
    right: -24px;
    animation: badgeBob 4s ease-in-out infinite;
}

.lp-float-badge--scan {
    bottom: 20px;
    left: -32px;
    color: #0f766e;
    animation: badgeBob 4.5s ease-in-out infinite 0.5s;
}

.lp-float-badge--scan svg {
    color: #0d9488;
    flex-shrink: 0;
}

.lp-float-badge--live {
    bottom: -4px;
    right: -16px;
    animation: badgeBob 5s ease-in-out infinite 1s;
}

.lp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

@keyframes badgeBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lp-tagline {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    animation: taglineGlow 3s ease-in-out infinite;
}

@keyframes taglineGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(94, 234, 212, 0); }
    50% { box-shadow: 0 0 20px rgba(94, 234, 212, 0.35); }
}

.lp-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.lp-brand-features li:hover .lp-feature-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Giriş animasyonları */
.lp-anim-fade {
    opacity: 0;
    animation: authFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-anim-slide {
    opacity: 0;
    animation: authSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-anim-delay-1 { animation-delay: 0.15s; }
.lp-anim-delay-2 { animation-delay: 0.35s; }
.lp-anim-delay-3 { animation-delay: 0.5s; }
.lp-anim-delay-4 { animation-delay: 0.65s; }

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-page .lp-left-bg .lp-left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 340px;
    width: 100%;
}

.login-page .lp-left-bg .lp-sub-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.login-page .lp-left-bg .lp-sub-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 88px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    animation: logoFloat 4s ease-in-out 0.75s infinite;
}

.auth-form-logo {
    display: none;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-form-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 72px;
    height: auto;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-page .lp-left-bg .lp-welcome-text {
    color: #fff;
}

.login-page .lp-left-bg .lp-welcome-text h2 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-page .lp-left-bg .lp-welcome-text p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.login-page .lp-brand-features {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    width: 100%;
    text-align: left;
}

.login-page .lp-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.login-page .lp-brand-features li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.login-page .lp-brand-features li:last-child {
    border-bottom: none;
}

.login-page .lp-brand-features svg {
    flex-shrink: 0;
    opacity: 0.9;
}

@media (max-width: 899px) {
    .food-float--9,
    .food-float--10,
    .food-float--11,
    .food-float--12 {
        display: none;
    }

    .tab-scene-deco {
        display: none;
    }

    .tab-panels {
        min-height: 420px;
    }

    .login-page .lp-left-bg {
        padding: 28px 24px 24px;
        min-height: auto;
    }

    .lp-hero-visual {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: 200px;
        margin-bottom: 8px;
    }

    .lp-phone {
        width: 150px;
        animation: phoneFloat 5s ease-in-out infinite;
    }

    .lp-float-badge--menu { right: 5%; top: 0; }
    .lp-float-badge--scan { left: 5%; bottom: 10px; }
    .lp-float-badge--live { right: 10%; bottom: 0; }

    .login-page .lp-left-bg .lp-left-content {
        margin-top: -8px;
    }

    .login-page .lp-left-bg .lp-brand-features {
        display: none;
    }

    .login-page .lp-left-bg .lp-sub-logo-wrap {
        display: none;
    }

    .auth-form-logo {
        display: flex;
    }

    .login-page .lp-left-bg .lp-welcome-text h2 {
        font-size: 1.35rem;
    }
}

/* ——— Sağ form paneli ——— */

.login-page .lp-right-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px 40px;
    background: var(--auth-surface);
    overflow-y: auto;
    overflow-x: hidden;
    transition: padding 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (min-width: 900px) {
    .login-page .lp-right-form {
        padding: 48px 44px;
    }

    .login-page .lp-right-form.lp-right-form--expanded {
        padding: 36px 40px 40px 44px;
        align-items: flex-start;
    }

    .login-page .lp-right-form.lp-right-form--expanded::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #14b8a6, #f59e0b, #14b8a6);
        background-size: 100% 200%;
        animation: registerEdgePulse 2.5s linear infinite;
        border-radius: 4px 0 0 4px;
        opacity: 0.85;
    }
}

@keyframes registerEdgePulse {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}

/* ——— Form elemanları (login-page kapsamı) ——— */

.login-page .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-text);
}

.login-page .form-group {
    margin-bottom: 18px;
}

.login-page .form-control {
    display: block;
    width: 100%;
    height: var(--auth-input-h);
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--auth-text);
    background: #f8fffe;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition), background var(--auth-transition);
}

.login-page .form-control::placeholder {
    color: #94a3a8;
}

.login-page .form-control:hover {
    border-color: #5eead4;
}

.login-page .form-control:focus {
    outline: none;
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background: #fff;
}

.login-page .form-control.form-control-lg {
    height: var(--auth-input-h);
    font-size: 1rem;
}

.login-page .form-select {
    display: block;
    width: 100%;
    height: var(--auth-input-h);
    padding: 0 36px 0 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--auth-text);
    background: #f8fffe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d9488' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    appearance: none;
    cursor: pointer;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.login-page .form-select:focus {
    outline: none;
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.login-page .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.login-page .form-check-label {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    cursor: pointer;
    user-select: none;
}

.login-page .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Şifre alanı + göster/gizle */

/* ——— Şifre alanı (gelişmiş) ——— */
.login-page .password-field-wrap {
    position: relative;
}

.login-page .password-field-wrap--pro {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #f8fffe 0%, #fff 100%);
    border: 2px solid var(--auth-border);
    border-radius: calc(var(--auth-radius) + 2px);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.login-page .password-field-wrap--pro:focus-within {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18), 0 8px 24px rgba(13, 148, 136, 0.12);
    transform: translateY(-1px);
}

.login-page .password-field-wrap--pro.is-visible {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.login-page .pwd-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    flex-shrink: 0;
    color: var(--auth-primary);
    background: rgba(204, 251, 241, 0.5);
    border-right: 1px solid var(--auth-border);
}

.login-page .password-field-wrap--pro .pwd-field-input,
.login-page .password-field-wrap--pro .form-control {
    flex: 1;
    min-width: 0;
    height: var(--auth-input-h);
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 12px !important;
}

.login-page .password-field-wrap--pro .pwd-field-input:focus {
    outline: none;
}

.login-page .btn-password-toggle--pro {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: auto;
    align-self: stretch;
    margin: 0;
    padding: 0 12px;
    border: none;
    border-left: 1px solid var(--auth-border);
    background: linear-gradient(180deg, #ecfdf5, #f0fdfa);
    color: var(--auth-primary);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.login-page .btn-password-toggle--pro:hover {
    background: var(--auth-primary-soft);
    color: var(--auth-primary-hover);
}

.login-page .btn-password-toggle--pro.is-visible {
    background: linear-gradient(180deg, #fef3c7, #fffbeb);
    color: #b45309;
}

.login-page .btn-password-toggle--pro.pwd-toggle-pulse {
    animation: pwdPulse 0.35s ease;
}

@keyframes pwdPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.login-page .pwd-toggle-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.login-page .pwd-toggle-icons {
    position: relative;
    width: 18px;
    height: 18px;
}

.login-page .pwd-toggle-icons svg {
    position: absolute;
    inset: 0;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.login-page .btn-password-toggle--pro .icon-eye-off {
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
}

.login-page .btn-password-toggle--pro.is-visible .icon-eye {
    opacity: 0;
    transform: scale(0.6) rotate(15deg);
}

.login-page .btn-password-toggle--pro.is-visible .icon-eye-off {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.login-page .btn-password-toggle--pro .icon-eye {
    opacity: 1;
    transform: scale(1);
}

.login-page .pwd-toggle-label {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.login-page .pwd-field-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.15), transparent);
    animation: pwdGlowSweep 3s ease-in-out infinite;
}

.login-page .password-field-wrap--pro:focus-within .pwd-field-glow {
    opacity: 1;
}

@keyframes pwdGlowSweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.login-page .btn-password-toggle:focus-visible {
    outline: 2px solid var(--auth-border-focus);
    outline-offset: -2px;
}

/* ——— Butonlar ——— */

.login-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--auth-radius);
    border: none;
    cursor: pointer;
    transition: background var(--auth-transition), transform var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition);
    text-decoration: none;
}

.login-page .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.login-page .btn-lg {
    min-height: 48px;
    padding: 0 24px;
    font-size: 1rem;
}

.login-page .btn-full {
    width: 100%;
}

.login-page .btn-main,
.login-page .btn.btn-main {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-hover) 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.login-page .btn-main:hover:not(:disabled),
.login-page .btn.btn-main:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #115e59 100%);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    transform: translateY(-1px);
}

.login-page .btn-main:active:not(:disabled),
.login-page .btn.btn-main:active:not(:disabled) {
    transform: translateY(0);
}

.login-page .btn-secondary {
    color: var(--auth-text);
    background: #ecfdf5;
    border: 1.5px solid var(--auth-border);
    min-height: 48px;
    padding: 0 18px;
    white-space: nowrap;
}

.login-page .btn-secondary:hover:not(:disabled) {
    background: var(--auth-primary-soft);
    border-color: var(--auth-primary-muted);
}

.login-page .btn-outline-primary {
    color: var(--auth-primary);
    background: transparent;
    border: 1.5px solid var(--auth-primary);
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.875rem;
    width: 100%;
}

.login-page .btn-outline-primary:hover:not(:disabled) {
    color: #fff;
    background: var(--auth-primary);
}


/* ——— Başlıklar ——— */

.login-page .lprf_title {
    margin: 0 0 6px;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--auth-text);
    text-align: center;
}

.login-page .lprf_subtitle {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    color: var(--auth-text-muted);
    text-align: center;
}

.login-page .language-selector {
    margin-bottom: 20px;
}

.login-page .language-selector .max-w-40 {
    max-width: 100%;
}

/* ——— Uyarılar ——— */

.login-page .alert {
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: var(--auth-radius);
    font-size: 0.875rem;
    line-height: 1.45;
}

.login-page .alert-danger {
    color: #991b1b;
    background: var(--auth-danger-bg);
    border: 1px solid #fecaca;
}

.login-page .text-danger {
    color: var(--auth-danger);
    font-size: 0.8125rem;
}

.login-page .text-muted {
    color: var(--auth-text-muted);
    font-size: 0.8125rem;
}

/* ——— Form alt satır ——— */

.login-page .form-check-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.login-page .forgot-password {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-primary);
    text-decoration: none;
    transition: color var(--auth-transition);
}

.login-page .forgot-password:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* ——— Ayırıcı (Google) ——— */

.login-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.login-page .auth-divider::before,
.login-page .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d1fae5;
}

.login-page .auth-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Dil seçici — üst bar */
.auth-lang-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-lang-bar__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    margin: 0;
}

.auth-lang-bar .form-select {
    width: auto;
    min-width: 130px;
    height: 40px;
    font-size: 0.875rem;
}

/* Google kartı */
.auth-google-card {
    position: relative;
    padding: 20px 18px 18px;
    margin-bottom: 4px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 55%, #fefce8 100%);
    border: 1.5px solid var(--auth-border);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
    text-align: center;
    overflow: hidden;
    animation: cardGlow 4s ease-in-out infinite;
}

.auth-google-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(20, 184, 166, 0.08), transparent 30%);
    animation: cardShimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08); }
    50% { box-shadow: 0 8px 28px rgba(13, 148, 136, 0.16); }
}

@keyframes cardShimmer {
    100% { transform: rotate(360deg); }
}

.auth-google-card--register {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 50%, #ecfdf5 100%);
    border-color: #86efac;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    text-align: center;
}

.auth-google-card--register .auth-google-card__title {
    font-size: 1rem;
}

.auth-google-card--register .auth-google-card__desc {
    margin-bottom: 16px;
}

.auth-google-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
}

.auth-google-card__badge--alt {
    color: #b45309;
    background: var(--auth-accent-soft);
}

.auth-google-card__title {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-google-card__desc {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
    line-height: 1.45;
}

.google-btn-host {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    width: 100%;
}

.google-btn-host > div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.google-btn-host > div > div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

#g_id_onload {
    display: none;
}

/* ——— Yardımcı sınıflar ——— */

.login-page .text-center {
    text-align: center;
}

.login-page .mt-1 { margin-top: 4px; }
.login-page .mt-2 { margin-top: 8px; }
.login-page .mt-3 { margin-top: 16px; }
.login-page .d-block { display: block; }
.login-page .d-flex { display: flex; }
.login-page .gap-2 { gap: 10px; }

.login-page .link {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-page .link:hover {
    text-decoration: underline;
}

.login-page .relative {
    position: relative;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.login-page .alert-danger {
    animation: authShake 0.45s ease-in-out;
}

/* Form panel giriş animasyonu */
.login-page .lp-right-form .lcc-form-wrapper {
    animation: authFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.login-page .btn-main:not(:disabled) {
    position: relative;
    overflow: hidden;
}

.login-page .btn-main:not(:disabled)::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ——— Uçan yemekler ——— */
.login-page__food-cloud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.food-float {
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    animation: foodFly linear infinite;
    will-change: transform;
}

.food-float--1 { left: 3%; top: 8%; animation-duration: 22s; animation-delay: 0s; }
.food-float--2 { left: 88%; top: 12%; animation-duration: 26s; animation-delay: -3s; width: 48px !important; }
.food-float--3 { left: 75%; top: 55%; animation-duration: 20s; animation-delay: -6s; }
.food-float--4 { left: 8%; top: 62%; animation-duration: 28s; animation-delay: -9s; }
.food-float--5 { left: 92%; top: 78%; animation-duration: 24s; animation-delay: -2s; }
.food-float--6 { left: 42%; top: 5%; animation-duration: 30s; animation-delay: -12s; }
.food-float--7 { left: 55%; top: 82%; animation-duration: 25s; animation-delay: -5s; }
.food-float--8 { left: 22%; top: 35%; animation-duration: 32s; animation-delay: -8s; }
.food-float--9 { left: 68%; top: 38%; animation-duration: 18s; animation-delay: -14s; opacity: 0.7; }
.food-float--10 { left: 12%; top: 88%; animation-duration: 27s; animation-delay: -4s; opacity: 0.75; }
.food-float--11 { left: 48%; top: 68%; animation-duration: 23s; animation-delay: -11s; opacity: 0.8; }
.food-float--12 { left: 82%; top: 42%; animation-duration: 29s; animation-delay: -7s; opacity: 0.65; }

@keyframes foodFly {
    0% {
        transform: translate(0, 110vh) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    8% {
        opacity: 0.95;
    }
    50% {
        transform: translate(40px, -20vh) rotate(180deg) scale(1.05);
        opacity: 1;
    }
    92% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-30px, -130vh) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

.login-page.scene-register .food-float {
    animation-duration: 18s;
}

.login-page.scene-register .login-page__food-cloud {
    filter: brightness(1.08) saturate(1.2);
}

.login-page.scene-login .food-float--2,
.login-page.scene-login .food-float--6 {
    animation-direction: reverse;
}

/* Sekme sahne dekoru */
.tab-scene-deco {
    position: absolute;
    top: 52px;
    right: 0;
    width: 100px;
    height: 70px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.tab-scene-deco__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-scene-deco__img--login {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.tab-scene-deco__img--register {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
}

.login-page.scene-register .tab-scene-deco__img--login {
    opacity: 0;
    transform: scale(0.5) rotate(20deg);
}

.login-page.scene-register .tab-scene-deco__img--register {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
    animation: decoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes decoPop {
    0% { transform: scale(0.3) rotate(-30deg); }
    70% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

/* Form panel arka plan dalgası */
.login-page .lp-right-form {
    position: relative;
    overflow: hidden;
}

.login-page .lp-right-form::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 30% 40%, rgba(204, 251, 241, 0.4), transparent 45%),
                radial-gradient(circle at 70% 60%, rgba(254, 243, 199, 0.35), transparent 40%);
    animation: formBgWave 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.login-page.scene-register .lp-right-form::before {
    animation-duration: 6s;
    background: radial-gradient(circle at 40% 30%, rgba(167, 243, 208, 0.55), transparent 50%),
                radial-gradient(circle at 60% 70%, rgba(253, 230, 138, 0.45), transparent 45%),
                radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.3), transparent 40%);
}

.login-page .lp-wrapper.lp-wrapper--register .lp-left-bg {
    transition: opacity 0.4s ease;
}

@keyframes formBgWave {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, 2%) rotate(2deg); }
    66% { transform: translate(-2%, 3%) rotate(-1deg); }
}

.login-page .lp-right-form .lcc-form-wrapper {
    position: relative;
    z-index: 1;
}
