*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #eef2f7;
  --white: #fff;
  --border: #e4eaf1;
  --border2: #cdd5e0;
  --text: #1a2332;
  --muted: #64748b;
  --soft: #f6f9fc;
  --accent: #0891b2;
  --accent-dk: #0e7490;
  --accent-lt: rgba(8,145,178,.08);
  --green: #059669;
  --green-lt: #d1fae5;
  --green-bd: #6ee7b7;
  --red: #e11d48;
  --red-lt: #fff1f2;
  --red-bd: #fda4af;
  --nb-h: 60px;
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --fh: 'Outfit', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

html,
body {
  min-height: 100%;
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
}

body {
  background-color: #e0eef5;
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(8,145,178,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(14,116,144,.1) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nb-h) + 24px) 16px 40px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-top {
  padding: 26px 32px 22px;
  background: linear-gradient(135deg, #0c6d87, #0891b2);
  text-align: center;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgb(243, 241, 241);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-img {
  width: 50px;       
  height: 50px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

.logo-drop {
  width: 14px;
  height: 18px;
  background: rgba(255,255,255,.9);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.logo-drop::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid rgba(255,255,255,.9);
  border-radius: 2px;
}

.logo-txt .n {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  line-height: 1.1;
}

.logo-txt .s {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .09em;
}

.card-top p {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}

.card-body {
  padding: 26px 32px 30px;
}

.alert {
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 18px;
}

.alert ul {
  margin: 6px 0 0 16px;
}

.alert li {
  margin-bottom: 2px;
}

.alert-error {
  background: var(--red-lt);
  border: 1px solid var(--red-bd);
  color: var(--red);
}

.sec-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fg {
  margin-bottom: 14px;
}

.flabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.req {
  color: var(--red);
}

.opt {
  text-transform: none;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
}

.finput,
.fselect {
  width: 100%;
  background: var(--soft);
  border: 1.5px solid var(--border2);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.finput:focus,
.fselect:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8,145,178,.1);
}

.pw-wrap {
  position: relative;
}

.pw-wrap .finput {
  padding-right: 44px;
}

.pw-tog {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: color .15s;
}

.pw-tog:hover {
  color: var(--accent);
}

.pw-tog svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-strength {
  margin-top: 6px;
}

.pw-bg {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.pw-fill {
  height: 4px;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0;
}

.pw-fill.weak {
  background: #e11d48;
  width: 33%;
}

.pw-fill.fair {
  background: var(--yellow, #d97706);
  width: 66%;
}

.pw-fill.strong {
  background: var(--green);
  width: 100%;
}

.pw-hint {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent-dk), #22d3ee);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(8,145,178,.28);
  transition: opacity .2s, transform .1s;
  margin-top: 6px;
}

.btn-primary:hover {
  opacity: .88;
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cta {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.cta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cta a:hover {
  text-decoration: underline;
}

.page-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 480px) {
  .card-body {
    padding: 20px 18px 24px;
  }

  .card-top {
    padding: 20px 18px 18px;
  }

  .row2 {
    grid-template-columns: 1fr;
  }
}