/* ══════════════════════════════════════
   AKBANK MOBILE STYLE — app.css
   ══════════════════════════════════════ */

*,*::before,*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-tap-highlight-color:transparent;
}

html,body{
  width:100%;
  min-height:100%;
  overflow-x:hidden;
  background:#f2f2f2;
}

.app{
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin:0 auto;
  position:relative;
  overflow:hidden;
}

.app.is-transitioning .screen{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  min-height:100vh;
}

.screen{
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#f2f2f2;
}

/* ── SPLASH ── */
#splash{
  position:absolute;
  inset:0;
  z-index:9999;
  background:#E8001D;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  padding:0 0 48px 20px;
  overflow:hidden;
  min-height:100vh;
}
.splash-circle{
  position:absolute;
  top:-120px;
  right:-120px;
  width:380px;
  height:380px;
  background:rgba(255,100,100,0.28);
  transform:rotate(20deg);
  border-radius:40px;
  pointer-events:none;
}
.splash-circle::after{
  content:"";
  position:absolute;
  top:60px;
  left:60px;
  width:300px;
  height:300px;
  background:rgba(255,60,60,0.22);
  border-radius:30px;
  transform:rotate(15deg);
}
.splash-wordmark{
  color:#fff;
  font-size:100px;
  font-weight:900;
  letter-spacing:-3px;
  line-height:1;
  white-space:nowrap;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* ══ WELCOME SCREEN ══ */
.welcome-screen{
  background:#fff;
}

/* Top tabs — Bireysel / Kurumsal */
.welcome-tabs{
  display:flex;
  border-bottom:1px solid #ebebeb;
  padding:0 8px;
}
.wtab{
  flex:1;
  text-align:center;
  padding:16px 0 12px;
  color:#aaa;
  font-size:15px;
  font-weight:500;
  background:transparent;
  border:none;
  cursor:pointer;
  position:relative;
}
.wtab.active{
  color:#1a1a1a;
  font-weight:600;
}
.wtab.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:60px;
  height:2px;
  background:#E8001D;
  border-radius:1px;
}

/* Welcome body */
.welcome-body{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:36px 24px 24px;
  text-align:center;
}
.welcome-greeting{
  font-size:38px;
  font-weight:700;
  color:#1a1a1a;
  line-height:1.1;
  margin-bottom:36px;
}

/* Action buttons */
.welcome-actions{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:28px;
}
.welcome-btn-primary{
  width:100%;
  height:52px;
  border:none;
  border-radius:30px;
  background:#E8001D;
  color:#fff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  letter-spacing:0.1px;
}
.welcome-btn-primary:active{
  background:#c8001a;
}
.welcome-btn-outline{
  width:100%;
  height:52px;
  border:1.5px solid #E8001D;
  border-radius:30px;
  background:transparent;
  color:#E8001D;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}
.welcome-btn-outline:active{
  background:rgba(232,0,29,0.06);
}

/* Language selector */
.lang-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  margin-bottom:auto;
  cursor:pointer;
  border:none;
  background:transparent;
  padding:4px;
}
.lang-flag{
  font-size:28px;
  line-height:1;
}
.lang-name{
  font-size:13px;
  color:#555;
}

/* App version */
.app-version{
  font-size:11px;
  color:#c0c0c0;
  align-self:flex-end;
  margin-top:8px;
}

/* Red bottom bar */
.welcome-footer{
  background:#E8001D;
  padding:18px 4px 28px;
  display:flex;
  justify-content:space-around;
  align-items:flex-start;
}
.footer-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  flex:1;
  padding:0 4px;
}
.footer-icon{
  width:44px;
  height:44px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.footer-icon svg{
  width:22px;
  height:22px;
  fill:#E8001D;
  stroke:none;
}
.footer-item span{
  font-size:10px;
  color:#fff;
  line-height:1.3;
  font-weight:400;
  text-align:center;
}

/* ══ LOGIN HEADER (Red bar) ══ */
.login-header{
  flex-shrink:0;
  height:56px;
  display:flex;
  align-items:center;
  padding:0 14px;
  position:relative;
  background:#E8001D;
}
.back-btn{
  width:36px;
  height:36px;
  border:none;
  background:transparent;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
  z-index:2;
}
.back-btn svg{
  width:9px;
  height:16px;
  stroke:#fff;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.login-header-title{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-size:17px;
  font-weight:600;
  pointer-events:none;
  white-space:nowrap;
}
.help-btn{
  margin-left:auto;
  width:30px;
  height:30px;
  border:1.5px solid rgba(255,255,255,0.75);
  border-radius:50%;
  background:transparent;
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  line-height:1;
}
.login-header--center{
  justify-content:center;
}
.login-header--center .login-header-title{
  position:static;
  transform:none;
}

/* Hide login-tabs and page-tabs (not needed in Akbank style) */
.login-tabs,
.page-tabs{
  display:none;
}

/* ══ LOGIN FORM SCREEN ══ */
.login-screen{
  background:#f2f2f2;
}
.login-form-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:16px;
}
#girisForm{
  display:flex;
  flex-direction:column;
  flex:1;
}

/* White input card */
.form-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:14px;
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
.form-field{
  padding:14px 16px 12px;
}
.field-label{
  font-size:10px;
  font-weight:700;
  color:#444;
  text-transform:uppercase;
  letter-spacing:0.4px;
  margin-bottom:8px;
  line-height:1;
  display:block;
}
.field-divider{
  height:1px;
  background:#ebebeb;
}

/* Input fields inside card */
.input-field{
  width:100%;
  height:26px;
  padding:0;
  border:none;
  background:transparent;
  color:#1a1a1a;
  font-size:15px;
  outline:none;
  -webkit-appearance:none;
  caret-color:#E8001D;
}
.input-field::placeholder{
  color:#b0b0b0;
  font-size:14px;
}

/* Forgot password link */
.forgot-link-wrap{
  text-align:center;
  padding:10px 0 14px;
}
.forgot-link{
  color:#E8001D;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Submit area pushed to bottom */
.form-submit-area{
  margin-top:auto;
  padding-top:16px;
}

/* Sifre-al link inside input */
.input-with-link{
  position:relative;
}
.input-with-link .input-field{
  padding-right:68px;
}
.sifre-al{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  color:#E8001D;
  font-size:12px;
  font-weight:600;
  pointer-events:none;
  white-space:nowrap;
}

/* Input group (for soft-error) */
.input-group{
  margin-bottom:0;
}

/* ══ BUTTONS ══ */
.btn-devam,
.btn1{
  width:100%;
  height:52px;
  border:none;
  border-radius:30px;
  background:#E8001D;
  color:#fff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  opacity:0.88;
  letter-spacing:0.1px;
}
.btn-devam:hover,
.btn1:hover{
  opacity:0.95;
}
.btn-devam:active,
.btn1:active{
  opacity:1;
  background:#c8001a;
}

/* ══ FORM PAGES (basvuru, info) ══ */
.form-page-body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:16px;
}
.form-title{
  color:#1a1a1a;
  font-size:16px;
  font-weight:600;
  margin-bottom:14px;
}
.form-notice{
  background:#fff;
  border-radius:10px;
  padding:13px 14px;
  margin-bottom:16px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
}
.form-notice .small{
  color:#666;
  font-size:13px;
  line-height:1.5;
}
.form-notice strong{
  color:#1a1a1a;
  font-weight:600;
}

/* ══ ERROR / VALIDATION ══ */
#hataMesaj,
.form-error,
.err{
  color:#E8001D;
  font-size:13px;
  font-weight:500;
  text-align:center;
  margin-bottom:12px;
}
.soft-error{
  display:none;
  margin-top:6px;
  padding:8px 12px;
  background:#fff3f3;
  border-left:3px solid #E8001D;
  color:#c0002a;
  font-size:12px;
  border-radius:0 6px 6px 0;
}

/* ══ BRAND LOGO (for success/error pages) ══ */
.brand-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.brand-icon{
  width:22px;
  height:20px;
  object-fit:cover;
  flex-shrink:0;
}
.brand-text{
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.3px;
}

/* ══ SUCCESS SCREEN ══ */
.success-content{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 22px;
}
.success-box{
  width:100%;
  max-width:360px;
  padding:28px 22px;
  border-radius:14px;
  background:#fff;
  border:1px solid #ebebeb;
  color:#1a1a1a;
  text-align:center;
  font-size:16px;
  line-height:1.65;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
}

/* ══ ERROR PAGE ══ */
.error-screen{
  align-items:stretch;
}
.error-content{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 22px;
}
.error-box{
  width:100%;
  max-width:360px;
  padding:24px 20px;
  border-radius:14px;
  background:#fff;
  border:1px solid #ebebeb;
  color:#1a1a1a;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
}
.error-box h2{
  font-size:20px;
  margin-bottom:10px;
}
.error-box p{
  font-size:14px;
  line-height:1.55;
  color:#666;
}
.error-box a{
  color:#E8001D;
  text-decoration:none;
  font-weight:600;
}

/* ══ PAGE TRANSITIONS ══ */
.app.is-transitioning .screen{
  will-change:opacity,transform;
}

@keyframes txEnterForward{
  from{
    opacity:0;
    transform:translateY(12px) scale(0.988);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}
@keyframes txExitForward{
  from{
    opacity:1;
    transform:translateY(0) scale(1);
  }
  to{
    opacity:0;
    transform:translateY(-8px) scale(0.992);
  }
}
@keyframes txEnterBack{
  from{
    opacity:0;
    transform:translateY(-10px) scale(0.988);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}
@keyframes txExitBack{
  from{
    opacity:1;
    transform:translateY(0) scale(1);
  }
  to{
    opacity:0;
    transform:translateY(10px) scale(0.992);
  }
}

.tx-enter-forward{
  animation:txEnterForward 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}
.tx-exit-forward{
  animation:txExitForward 0.36s cubic-bezier(0.4,0,0.2,1) forwards;
}
.tx-enter-back{
  animation:txEnterBack 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}
.tx-exit-back{
  animation:txExitBack 0.36s cubic-bezier(0.4,0,0.2,1) forwards;
}

@media (prefers-reduced-motion:reduce){
  .tx-enter-forward,
  .tx-exit-forward,
  .tx-enter-back,
  .tx-exit-back{
    animation:none;
  }
}
