:root {
  --tez-blue: #0d5378;
  --tez-teal: #0f7a77;
  --tez-red: #d81f3b;
  --tez-border: #d7e3ec;
  --tez-soft: #f7fafc;
  --tez-text: #1d3551;
  --tez-muted: #74889b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--tez-text);
  background: linear-gradient(90deg, #f4f7fa 0%, #eef3f7 30%, #f8fbfc 50%, #eef3f7 70%, #f4f7fa 100%);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.tez-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.tez-auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border: 1px solid var(--tez-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 56px rgba(14, 42, 64, .12);
}

.tez-auth-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--tez-blue), var(--tez-teal));
}

.tez-auth-head {
  padding: 24px 34px 15px;
  text-align: center;
  border-bottom: 1px solid #e4ecf3;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.tez-auth-logo {
  display: block;
  width: auto;
  max-width: 145px;
  height: auto;
  max-height: 58px;
  margin: 0 auto 9px;
}

.tez-product-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 9px;
  color: var(--tez-teal);
  border: 1px solid #cfe2e4;
  border-radius: 999px;
  background: #edf8f7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tez-auth-head h1 { margin: 0; font-size: 19px; font-weight: 900; }
.tez-auth-head p { margin: 6px 0 0; color: var(--tez-muted); font-size: 13px; line-height: 1.55; }
.tez-auth-body { padding: 19px 34px 21px; }
.tez-field { margin-bottom: 14px; }
.tez-field-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tez-field-head label { margin: 0; color: #243854; font-size: 13px; font-weight: 800; }
.tez-field-head small { color: #8b9caf; font-size: 11px; }
.tez-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--tez-border);
  border-radius: 12px;
  background: var(--tez-soft);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tez-input:focus-within { border-color: #9ab8cf; background: #fff; box-shadow: 0 0 0 4px rgba(13, 84, 121, .07); }
.tez-input .fa { width: 42px; min-width: 42px; color: #708499; text-align: center; }
.tez-input input {
  width: 100%;
  height: 46px;
  padding: 10px 12px 10px 0;
  color: #233850;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}
.tez-role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tez-role-option { position: relative; }
.tez-role-option input { position: absolute; opacity: 0; pointer-events: none; }
.tez-role-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  cursor: pointer;
  color: #26405b;
  border: 1px solid var(--tez-border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.tez-role-option input:focus + span { outline: 3px solid rgba(13, 83, 120, .14); }
.tez-role-option input:checked + span { color: #103d5d; border-color: #79aebe; background: #f0f8fa; box-shadow: 0 0 0 3px rgba(13, 83, 120, .08); }
.tez-field-error { display: block; min-height: 16px; margin-top: 5px; color: #c62847; font-size: 12px; }
.tez-auth-card .alert { margin-bottom: 13px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.tez-submit, .tez-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}
.tez-submit { color: #fff; border: 0; background: linear-gradient(90deg, #d71f3c, #df1734); box-shadow: 0 12px 24px rgba(215, 31, 60, .22); }
.tez-submit:hover, .tez-submit:focus { color: #fff; }
.tez-back { margin-top: 10px; color: #204463; border: 1px solid var(--tez-border); background: #fff; text-decoration: none; }
.tez-back:hover, .tez-back:focus { color: var(--tez-blue); text-decoration: none; }
.tez-submit .fa, .tez-back .fa { margin-right: 8px; }
.tez-auth-foot { padding: 11px 24px 16px; color: #95a4b0; border-top: 1px solid #e4ecf3; text-align: center; font-size: 10px; }
.tez-auth-foot span { display: block; margin-bottom: 4px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tez-auth-foot img { display: block; width: auto; max-width: 105px; height: 24px; margin: 0 auto 5px; }

@media (max-width: 767px) {
  .tez-auth-page { padding: 14px 10px; }
  .tez-auth-card { max-width: 420px; border-radius: 18px; }
  .tez-auth-head, .tez-auth-body { padding-right: 18px; padding-left: 18px; }
  .tez-role-picker { grid-template-columns: 1fr; }
}
