/* ============================================================
   Akbank Giriş Sayfası – style.css  (v2 – daha gerçekçi tema)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:        #E30613;
    --red-dark:   #C0050F;
    --white:      #ffffff;
    --gray-100:   #f5f5f5;
    --gray-200:   #e8e8e8;
    --gray-300:   #d0d0d0;
    --gray-400:   #9e9e9e;
    --gray-500:   #6e6e6e;
    --text-dark:  #111111;
    --text-mid:   #444444;
    --shadow-btn: 0 8px 24px rgba(227,6,19,.38);
    --tab-line:   2px;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    margin: 0;
    padding: 0;
    display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════
   PHONE SHELL
   ══════════════════════════════════════════════════════════ */
.phone-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    user-select: none;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════════════ */
.status-bar {
    background: var(--white);
    padding: 14px 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-bar .time {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.3px;
}
.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}
.status-icons svg {
    width: 16px;
    height: 16px;
    fill: var(--text-dark);
    stroke: var(--text-dark);
    stroke-width: .5px;
}

/* ══════════════════════════════════════════════════════════
   TAB BAR
══════════════════════════════════════════════════════════ */
.tab-bar {
    display: flex;
    background: var(--white);
    padding: 8px 0 0;
    border-bottom: 1.5px solid var(--gray-200);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0 13px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    position: relative;
    transition: color .22s;
    letter-spacing: -.1px;
}
.tab-btn.active {
    color: var(--text-dark);
    font-weight: 700;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 2.5px;
    background: var(--red);
    border-radius: 2px;
    animation: tabSlide .3s ease forwards;
}
@keyframes tabSlide {
    from { width: 0 }
    to   { width: 56px }
}

/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 28px 20px;
    position: relative;
    background: var(--white);
}

/* ══════════════════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════════════════ */
.avatar-wrap {
    position: relative;
    margin-bottom: 22px;
    animation: fadeDown .45s ease;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px) }
    to   { opacity: 1; transform: translateY(0) }
}

.avatar-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: .5px;
}
.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red);
    border: 2.5px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-badge svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════════════════
   GREETING
══════════════════════════════════════════════════════════ */
.greeting {
    text-align: center;
    margin-bottom: 14px;
    animation: fadeUp .45s .08s both ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px) }
    to   { opacity: 1; transform: translateY(0) }
}

.greeting h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.18;
    letter-spacing: -.8px;
}

/* ══════════════════════════════════════════════════════════
   NOT YOU LINK
══════════════════════════════════════════════════════════ */
.not-you-link {
    color: var(--red);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    transition: opacity .2s;
    margin-bottom: 26px;
    display: inline-block;
    letter-spacing: -.1px;
}
.not-you-link:hover { opacity: .65; }

/* ══════════════════════════════════════════════════════════
   LOGIN BUTTON
══════════════════════════════════════════════════════════ */
.btn-login {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 17px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: background .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -.1px;
    position: relative;
    overflow: hidden;
}
.btn-login:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(227,6,19,.48);
}
.btn-login:active { transform: translateY(0); }
.btn-login.loading { pointer-events: none; }

.btn-login .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-login.loading .spinner { display: block; }
.btn-login.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ══════════════════════════════════════════════════════════
   BELL
══════════════════════════════════════════════════════════ */
.bell-wrap {
    margin-top: 30px;
    animation: fadeUp .45s .18s both ease;
}
.bell-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.8px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bell-btn:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transform: scale(1.06);
    border-color: var(--red);
}
.bell-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-dark);
    fill: none;
    stroke-width: 1.8;
}

/* ══════════════════════════════════════════════════════════
   VERSION
══════════════════════════════════════════════════════════ */
.version-text {
    position: absolute;
    bottom: 18px;
    right: 20px;
    font-size: 10.5px;
    color: var(--gray-300);
    font-weight: 500;
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════════════════ */
.bottom-bar {
    background: var(--red);
    padding: 16px 8px 10px;
    flex-shrink: 0;
}
.bottom-bar-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}
.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform .18s;
}
.bar-item:hover { transform: translateY(-3px); }
.bar-item:active { transform: translateY(0); }

.bar-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.bar-icon .badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-star { font-size: 7.5px; color: var(--white); }

.bar-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    text-align: center;
    line-height: 1.35;
    letter-spacing: .1px;
}
.bottom-bar-rate {
    text-align: center;
    color: rgba(255,255,255,.82);
    font-size: 11.5px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 10px;
    letter-spacing: .1px;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-wrap {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    animation: toastIn .32s cubic-bezier(.34,1.56,.64,1) both;
    pointer-events: auto;
    white-space: nowrap;
}
.toast.success { background: #1a8c3f; }
.toast.error   { background: #dc2626; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-16px) scale(.92) }
    to   { opacity: 1; transform: translateY(0) scale(1) }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-8px) scale(.95) }
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
    z-index: 100;
    border-radius: 44px;
    overflow: hidden;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--white);
    border-radius: 26px 26px 0 0;
    padding: 28px 24px 34px;
    width: 100%;
    position: relative;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -.3px;
}
.modal-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 22px;
    line-height: 1.5;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   LOGIN FORM (hidden – kept for compat)
══════════════════════════════════════════════════════════ */
.login-form { display: none; }
.login-form.visible { display: block; animation: fadeUp .4s ease; }

.form-group { margin-bottom: 14px; position: relative; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 1.8px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color .22s, box-shadow .22s;
}
.form-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227,6,19,.1);
}
.form-group .eye-btn {
    position: absolute;
    right: 14px;
    bottom: 13px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    display: flex;
    align-items: center;
}
.form-group .eye-btn svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
/* Phone shell is already full-screen and responsive by default on all viewport widths. */

/* ── Shared Bottom Navigation Bar ────────────────────────── */
.bottom-nav {
    display: flex;
    background: #fff;
    border-top: 1px solid #ebebeb;
    padding: 8px 0 20px;
    flex-shrink: 0;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: color .18s;
    color: #8e8e93;
}
.nav-item.active { color: #E30613; }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active svg { stroke: #E30613; }
.nav-item span {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: -.1px;
}

