/* =========================
   Mplaid – styles.css
   Cute, clean Plaid-style UI
   ========================= */

:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --border2:#dbe2ea;

  --brand: #0a2540;         /* primary button + accents */
  --brandSoft: rgba(10,37,64,0.10);

  --radius: 16px;
  --radiusSm: 12px;

  --shadow: 0 18px 45px rgba(2, 6, 23, 0.08);
  --shadow2: 0 10px 25px rgba(2, 6, 23, 0.06);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 350px at 15% 10%, rgba(99,102,241,0.08), transparent 60%),
    radial-gradient(900px 350px at 85% 0%, rgba(16,185,129,0.06), transparent 55%),
    var(--bg);
}

/* Layout */
.container{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
}

.card{
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* subtle top highlight */
.card::before{
  content:"";
  position:absolute;
  top:-120px;
  left:-120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(99,102,241,0.10);
  filter: blur(0px);
  pointer-events:none;
}
.card::after{
  content:"";
  position:absolute;
  bottom:-140px;
  right:-140px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(16,185,129,0.08);
  pointer-events:none;
}

/* Brand */
.logo{
  width: 132px;
  display:block;
  margin: 2px auto 14px auto;
  position: relative;
  z-index: 1;
}

/* Headings */
.title{
  margin: 0;
  text-align:center;
  font-size: 20px;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.subtitle{
  margin: 7px 0 16px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* Inputs */
.field{
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input,
.search{
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: var(--radiusSm);
  border: 1px solid var(--border2);
  background: #fff;
  font-size: 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02);
}

.input:focus,
.search:focus{
  border-color: rgba(10,37,64,0.35);
  box-shadow: 0 0 0 4px var(--brandSoft);
}

/* Search (index) */
.search{
  margin-bottom: 12px;
}

/* Section label (index) */
.section-label{
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 6px;
  position: relative;
  z-index: 1;
}

/* Bank list (index) */
.bank-list{
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow2);
  position: relative;
  z-index: 1;
}

.bank-row{
  padding: 12px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.bank-row:last-child{
  border-bottom: none;
}

.bank-row:hover{
  background: rgba(2, 6, 23, 0.03);
}

.bank-row:active{
  background: rgba(2, 6, 23, 0.05);
}

/* Buttons */
.btn{
  width: 100%;
  height: 46px;
  border: none;
  border-radius: var(--radiusSm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 20px rgba(10,37,64,0.18);
}

.btn:hover{
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0px);
  opacity: 0.92;
}

.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Helper + links */
.helper{
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.link{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success check */
.checkWrap{
  display:flex;
  justify-content:center;
  margin: 6px 0 10px;
  position: relative;
  z-index: 1;
}

.checkCircle{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--brand);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  box-shadow: 0 14px 24px rgba(10,37,64,0.18);
}

/* Small screens */
@media (max-width: 420px){
  .card{ padding: 18px; border-radius: 14px; }
  .logo{ width: 120px; }
  .title{ font-size: 19px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
}