/**
 * Figma login ekranı stilleri (12 — Giriş)
 * 440×956 mobil sheet + tablet/desktop ortalı kart
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.figma-login-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1f2429;
    width: 100%;
    height: var(--app-vh, 100dvh);
    min-height: var(--app-vh, 100dvh);
    max-height: var(--app-vh, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

html:has(body.figma-login-page) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

body.figma-login-page .main-container {
    width: 100%;
    height: var(--app-vh, 100dvh);
    min-height: 0;
    max-height: var(--app-vh, 100dvh);
    padding: 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
}

body.figma-login-page .desktop-layout,
body.figma-login-page .language-selector {
    display: none !important;
}

.fl-root {
    /* Pin to visual viewport — prevents iOS keyboard gap (#1f2429) */
    position: fixed;
    top: var(--app-vv-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
    height: var(--app-vh, 100dvh);
    min-height: 0;
    max-height: var(--app-vh, 100dvh);
    background: #1f2429;
    overflow: hidden;
    z-index: 1;
}

.fl-hero {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: none;
    background-color: #1f2429;
    overflow: hidden;
    z-index: 0;
    line-height: 0;
}

.fl-hero-media {
    position: relative;
    inset: auto;
    display: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Full width, natural aspect ratio — no crop, no stretch */
    object-fit: unset;
    object-position: center top;
    border: 0;
    vertical-align: top;
}

.fl-hero-media.is-mobile { display: block; }
.fl-hero-media.is-tablet,
.fl-hero-media.is-desktop { display: none; }

@media (min-width: 481px) and (max-width: 1024px) {
    .fl-hero-media.is-mobile { display: none; }
    .fl-hero-media.is-tablet { display: block; }
    .fl-hero-media.is-desktop { display: none; }
}

@media (min-width: 1025px) {
    .fl-hero-media.is-mobile,
    .fl-hero-media.is-tablet { display: none; }
    .fl-hero-media.is-desktop { display: block; }
}

.fl-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    padding: 28px 24px 33px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.fl-sheet.is-otp {
    gap: 16px;
    padding: 28px 24px;
}

.fl-head {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fl-sheet.is-otp .fl-head {
    gap: 8px;
}

.fl-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 35px;
    color: #1f2429;
    width: 100%;
}

.fl-sheet.is-otp .fl-title {
    font-size: 24px;
    line-height: 32px;
}

.fl-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    color: #6b7380;
    width: 100%;
}

.fl-sheet.is-otp .fl-subtitle {
    font-size: 13px;
    line-height: 18px;
}

.fl-shield {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #e5f7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-shield img,
.fl-shield i {
    width: 24px;
    height: 24px;
    font-size: 22px;
    color: #28a745;
}

.fl-alert {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
}

.account-inactive-mail,
.account-inactive-mail:link,
.account-inactive-mail:visited,
.account-inactive-mail:hover,
.account-inactive-mail:focus,
.account-inactive-mail:active {
    font-weight: 700 !important;
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.fl-phone {
    width: 100%;
    background: #f3f5f7;
    border: 1px solid #e3e8ec;
    border-radius: 14px;
    padding: 8px 14px 8px 8px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.fl-cc {
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.fl-cc:focus {
    outline: 2px solid rgba(40, 167, 69, 0.35);
    outline-offset: 1px;
}

.fl-flag-img {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.fl-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    background: #e32629;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 12px;
}

.fl-cc-code {
    font-size: 15px;
    font-weight: 600;
    color: #1f2429;
    line-height: 20px;
}

.fl-cc-chevron {
    width: 12px;
    height: 12px;
    font-size: 11px;
    line-height: 1;
    color: #5b6570;
    opacity: 0.85;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    filter: invert(20%);
}

.fl-divider {
    width: 1px;
    height: 28px;
    background: #e3e8ec;
    margin-left: 0;
    flex-shrink: 0;
}

.fl-number {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.fl-number-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-number-icon img {
    width: 16px;
    height: 16px;
    display: block;
    filter: invert(42%) sepia(78%) saturate(463%) hue-rotate(88deg) brightness(95%) contrast(92%);
}

.fl-number-icon i {
    font-size: 14px;
    line-height: 1;
    color: #28a745;
}

.fl-btn-lang img,
.fl-btn-support img {
    filter: invert(42%) sepia(78%) saturate(463%) hue-rotate(88deg) brightness(95%) contrast(92%);
}

.fl-btn-login img,
.fl-btn-verify img {
    filter: brightness(0) invert(1);
}

.fl-shield img {
    filter: invert(42%) sepia(78%) saturate(463%) hue-rotate(88deg) brightness(95%) contrast(92%);
}

.fl-btn-lang .fl-ico,
.fl-btn-support .fl-ico,
.fl-btn-lang i.fl-ico,
.fl-btn-support i.fl-ico {
    color: #28a745;
}

.fl-btn-login .fl-ico,
.fl-btn-verify .fl-ico,
.fl-btn-login i.fl-ico,
.fl-btn-verify i.fl-ico {
    color: #fff;
}

.fl-shield i {
    color: #28a745;
}

.fl-number input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #1f2429;
    padding: 0;
}

.fl-number input::placeholder {
    color: #9aa3af;
    font-weight: 500;
}

.fl-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fl-btn-lang,
.fl-btn-support,
.fl-btn-login,
.fl-btn-verify {
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.fl-btn-lang {
    height: 54px;
    padding: 0 12px 0 14px;
    background: #fff;
    border: 1.5px solid #28a745;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    flex-shrink: 0;
}

.fl-btn-lang img,
.fl-btn-lang .fl-ico {
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-btn-lang .fl-ico-sm {
    width: 12px;
    height: 12px;
    font-size: 11px;
    line-height: 1;
}

.fl-btn-support {
    width: 54px;
    height: 54px;
    padding: 0;
    background: #fff;
    border: 1.5px solid #28a745;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    flex-shrink: 0;
    text-decoration: none;
}

.fl-btn-support img,
.fl-btn-support .fl-ico {
    width: 18px;
    height: 18px;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-btn-login {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    background: #28a745;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.fl-btn-login img,
.fl-btn-login .fl-ico {
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-btn-login:disabled,
.fl-btn-verify:disabled {
    opacity: 0.7;
    cursor: wait;
}

.fl-join {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fl-join-q {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #6b7380;
}

.fl-join-a {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    color: #28a745;
    text-decoration: none;
}

.fl-join-a:hover {
    color: #218838;
    text-decoration: none;
}

.fl-otp-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-otp-input {
    width: 220px;
    height: 56px;
    background: #f3f5f7;
    border: 1.5px solid #28a745;
    border-radius: 14px;
    text-align: center;
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #1f2429;
    outline: none;
    padding: 0 16px;
}

.fl-btn-verify {
    width: 100%;
    height: 54px;
    background: #28a745;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.fl-btn-verify img,
.fl-btn-verify .fl-ico {
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-resend {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.fl-resend-q {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #6b7380;
}

.fl-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fl-link-btn {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    color: #28a745;
    cursor: pointer;
}

.fl-link-btn:disabled {
    color: #9aa3af;
    cursor: not-allowed;
}

.fl-link-muted {
    color: #6b7380;
    font-weight: 500;
}

.fl-timer {
    font-size: 12px;
    color: #6b7380;
    margin: 0;
}

@media (min-width: 768px) {
    .fl-sheet {
        left: 50%;
        right: auto;
        bottom: 48px;
        width: min(440px, calc(100% - 64px));
        transform: translateX(-50%);
        border-radius: 30px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
        max-height: calc(var(--app-vh, 100dvh) - 48px);
    }
}

@media (min-width: 1024px) {
    .fl-sheet {
        width: min(480px, calc(100% - 80px));
        bottom: 64px;
        max-height: calc(var(--app-vh, 100dvh) - 64px);
    }
}

[dir="rtl"] .fl-number {
    padding-left: 0;
    padding-right: 12px;
}

[dir="rtl"] .fl-phone {
    padding: 8px 8px 8px 14px;
}

/* Bottom sheets (ülke + dil) */
body.fl-sheet-open {
    overflow: hidden;
}

.fl-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 32, 0.45);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fl-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.fl-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78vh, 640px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.fl-bottom-sheet.is-open {
    transform: translateY(0);
}

.fl-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: #d1d5db;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

.fl-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    gap: 12px;
    flex-shrink: 0;
}

.fl-sheet-head h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2429;
}

.fl-sheet-close {
    border: 0;
    background: #f3f5f7;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.fl-sheet-search {
    padding: 0 16px 10px;
    flex-shrink: 0;
}

.fl-sheet-search input {
    width: 100%;
    border: 1px solid #e3e8ec;
    background: #f8fafb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.fl-sheet-search input:focus {
    border-color: #28a745;
    background: #fff;
}

.fl-sheet-body {
    overflow-y: auto;
    padding: 0 10px 16px;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.fl-opt,
.fl-lang-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #1f2429;
}

.fl-opt:hover,
.fl-lang-opt:hover {
    background: #f3f5f7;
}

.fl-opt.is-active,
.fl-lang-opt.is-active {
    background: rgba(40, 167, 69, 0.1);
}

.fl-opt-flag,
.fl-lang-flag img {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.fl-lang-flag {
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.fl-opt-name,
.fl-lang-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.fl-opt-dial {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.fl-lang-check {
    color: #28a745;
    font-size: 14px;
}

.fl-empty {
    padding: 24px 12px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

[dir="rtl"] .fl-opt,
[dir="rtl"] .fl-lang-opt,
[dir="rtl"] .fl-opt-name,
[dir="rtl"] .fl-lang-name {
    text-align: right;
}

@media (min-width: 768px) {
    .fl-bottom-sheet {
        left: 50%;
        right: auto;
        width: min(420px, 100%);
        transform: translate(-50%, 110%);
        border-radius: 20px 20px 0 0;
    }
    .fl-bottom-sheet.is-open {
        transform: translate(-50%, 0);
    }
}
