:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;

  --orange:#f97316;
  --orange2:#fb8c2f;

  --green:#22c55e;
  --green2:#16a34a;

  --shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.auth-card{
  width: min(420px, calc(100% - 28px));
  margin: 28px auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229,231,235,.8);
  padding: 22px 20px 18px;
}

.logo-wrap{
  display:flex;
  justify-content:center;
  margin-top: 2px;
}
.logo{
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 22px;
  line-height: 1;
}
.logo span{
  color: var(--orange);
}
.sublogo{
  text-align:center;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.msg{
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}
.msg.error{ background:#fff1f2; color:#991b1b; border:1px solid #fecdd3; }
.msg.success{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }

/* Tabs (üst 3 buton) */
.tabs{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0 14px;
}
.tab{
  appearance:none;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.tab.active{
  background: linear-gradient(180deg, var(--orange2), var(--orange));
  border-color: transparent;
  color:#fff;
  box-shadow: 0 14px 22px rgba(249,115,22,.25);
}

/* Forms */
.form{ display:none; }
.form.active{ display:block; }

.field{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background:#fff;
  box-shadow: 0 10px 18px rgba(15,23,42,.04);
}

.field .icon{
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 8px;
  color:#64748b;
  font-size: 14px;
  flex: 0 0 26px;
}

.field input{
  border:0;
  outline:0;
  width:100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
}
.field input::placeholder{
  color:#94a3b8;
  font-weight: 700;
}

.auth-link{
  display:block;
  text-align:center;
  margin: 10px 0 12px;
  color:#1d4ed8;
  font-weight: 800;
  text-decoration:none;
}
.auth-link:hover{ text-decoration: underline; }

.btn{
  width:100%;
  border:0;
  cursor:pointer;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing:.3px;
  font-size: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
}

.btn-green{
  background: linear-gradient(180deg, var(--green), var(--green2));
  color:#fff;
  box-shadow: 0 16px 24px rgba(34,197,94,.22);
}
.btn-green:active{ transform: translateY(1px); }

.divider{
  position:relative;
  margin: 12px 0 10px;
  text-align:center;
}
.divider::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:1px;
  background: var(--line);
}
.divider span{
  position:relative;
  display:inline-block;
  padding: 0 10px;
  background: var(--card);
  color:#64748b;
  font-weight: 900;
  font-size: 12px;
  text-transform: lowercase;
}

/* Google butonu (outline) */
.btn-outline{
  background:#fff;
  border:1px solid var(--line);
  color:#0f172a;
  box-shadow: 0 10px 18px rgba(15,23,42,.04);
}
.gicon{
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0 100%);
}

/* Alt kısımdaki Giriş Yap butonu (sekonder) */
.btn-secondary{
  margin-top: 10px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  font-weight: 800;
}

.btn-secondary:hover{
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-secondary:active{
  transform: translateY(1px);
}

/* Login’e geçiş butonu özel ayar */
.btn-login-switch{
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
}


.btn-google{
  display:block;
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#111;
  font-weight:700;
  margin:10px 0 14px;
}
.btn-google:hover{ background:#f6f6f6; }
