:root {
  --navy: #021a0e;
  --navy-mid: #06351d;
  --emerald: #00d68f;
  --emerald-light: #d1fae5;
  --emerald-dark: #065f46;
  --border: #e2e8f0;
  --danger-light: #fee2e2;
  --text-main: #0c1e3c;
  --text-muted: #64748b;
  --auth-bg: #f8faf9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--auth-bg);
}

/* ================================
   Layout
================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--auth-bg);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 214, 143, .12);
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 214, 143, .08);
}

.brand,
.auth-brand-content,
.auth-brand-footer {
  position: relative;
  z-index: 1;
  padding-bottom: 15px;
}

.auth-form-panel {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

/* ================================
   Brand Panel
================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--emerald);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}

.brand-name span {
  color: #6ee7b7;
}

.tagline {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.tagline span {
  color: #6ee7b7;
}

.tagline-sub {
  max-width: 460px;
  margin-bottom: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.6;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}

.auth-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 214, 143, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
  font-size: 15px;
  flex-shrink: 0;
}

.auth-feature-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.auth-brand-footer {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

/* ================================
   Auth Box
================================ */

.auth-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 12px 36px rgba(12, 30, 60, .10);
}

.auth-box-wide {
  max-width: 520px;
}

.auth-box-medium {
  max-width: 520px;
}

.text-center {
  text-align: center;
}

.sa-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--emerald-dark);
  font-weight: 500;
}

.auth-title {
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.auth-sub {
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.auth-sub-wide {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: 14px;
}

/* ================================
   Forms
================================ */

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-label {
  display: block;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-control,
.auth-form-group input {
  width: 100%;
  height: 43px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 12px;
  outline: none;
}

.auth-control:focus,
.auth-form-group input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 214, 143, .14);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.password-help {
  margin-top: -4px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ================================
   Buttons & Links
================================ */

.btn-signin,
.auth-submit {
  width: 100%;
  min-height: 46px;
  background: var(--navy);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-top: 4px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-signin:hover,
.auth-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2, 26, 14, .16);
  text-decoration: none !important;
  color: #fff !important;
}

.btn-signin:focus,
.auth-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 214, 143, .18);
  text-decoration: none !important;
  color: #fff !important;
}

.btn-link-reset {
  margin-top: 10px;
}

.forgot-link,
.auth-link-center,
.verification-link-row a,
.auth-footer a,
.auth-link a {
  font-family: 'Inter', sans-serif;
  color: var(--emerald-dark);
  font-weight: 500;
  text-decoration: none;
}

.forgot-link {
  font-size: 12px;
}

.auth-link-center {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
}

.auth-link-center:hover,
.verification-link-row a:hover,
.auth-footer a:hover,
.auth-link a:hover {
  color: var(--emerald);
  text-decoration: none;
}

.verification-link-row {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 14px;
}

.verification-link-row a {
  font-size: 12px;
}

.auth-footer {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

.message-action-link {
  margin-top: 8px;
}

.message-action-link a {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
}

/* ================================
   Message States
================================ */

.error-msg,
.success-msg,
.warning-msg,
.info-msg {
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.error-msg {
  background: var(--danger-light);
  color: #991b1b;
}

.success-msg {
  background: #dcfce7;
  color: #166534;
}

.warning-msg {
  background: #fef3c7;
  color: #92400e;
}

.info-msg {
  background: #dbeafe;
  color: #1e40af;
}

/* ================================
   Success Pages
================================ */

.auth-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  background: rgba(0, 214, 143, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--emerald);
}

/* ================================
   Mobile intro
================================ */

.mobile-auth-intro {
  display: none;
}

/* ================================
   Responsive
================================ */

.global-auth-footer {
  display: none;
}

@media (max-width: 767px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .auth-page {
    flex: 1;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel {
    display: block;
    position: relative;
    min-height: 260px;
    padding: 28px 24px 54px;
    border-radius: 0;
  }

  .auth-brand-panel::before {
    width: 150px;
    height: 150px;
    top: -38px;
    right: -38px;
  }

  .auth-brand-panel::after {
    width: 95px;
    height: 95px;
    bottom: -22px;
    left: -22px;
  }

  .auth-brand-content {
    margin-top: 28px;
  }

  .auth-brand-panel .tagline {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .auth-brand-panel .tagline-sub {
    font-size: 13px;
    margin-bottom: 0;
  }

  .auth-features {
    display: none;
  }

  .auth-brand-footer {
    display: none !important;
  }

  .auth-form-panel {
    min-height: auto;
    background: var(--auth-bg);
    padding: 28px 20px 40px;
    align-items: flex-start;
  }

  .auth-box {
    padding: 32px 26px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-sub {
    font-size: 14px;
  }

  .mobile-auth-intro {
    display: none;
  }

  .global-auth-footer {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding: 18px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #fff;
  }

  .global-auth-footer a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
  }

  .global-auth-footer a:hover {
    color: var(--emerald-dark);
    text-decoration: none;
  }
}

@media (max-width: 520px) {
  .auth-brand-panel::before {
    width: 110px;
    height: 110px;
    top: -28px;
    right: -28px;
  }

  .auth-brand-panel::after {
    width: 70px;
    height: 70px;
    bottom: -18px;
    left: -18px;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-box {
    max-width: 100%;
  }

  .auth-brand-footer {
    display: none !important;
  }
}

/* ================================
   Register terms
================================ */

.register_terms {
  margin-top: -2px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.45;
}

.register_terms a {
  color: var(--emerald-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
  font-size: 12px;
}

.register_terms a:hover {
  color: var(--emerald);
  text-decoration: none;
}

.forgot-link,
.forgot-link:visited{
    color:#014737 !important;
    text-decoration:none !important;
}

.forgot-link:hover{
    color:#10b981 !important;
    text-decoration:none !important;
}