:root {
  --auth-primary: #0bb7a5;
  --auth-primary-dark: #087f76;
  --auth-secondary: #1db4c3;
  --auth-accent: #dce714;
  --auth-orange: #f7931e;
  --auth-text: #213547;
  --auth-muted: #667085;
  --auth-surface: #ffffff;
  --auth-background: #f3f8f8;
  --auth-border: #dce8e7;
  --auth-danger: #c83b4b;
  --auth-shadow: 0 24px 64px rgba(25, 72, 70, 0.14);
}

html,
body.auth-page {
  min-height: 100%;
}

body.auth-page {
  background: var(--auth-background);
  color: var(--auth-text);
  margin: 0;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.auth-brand-panel {
  background: linear-gradient(145deg, var(--auth-primary-dark) 0%, #076b64 58%, #07534f 100%);
  color: #fff;
  display: flex;
  flex: 0 0 43%;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 42px clamp(34px, 5vw, 78px);
  position: relative;
}

.auth-brand-panel::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
  bottom: 0;
  content: "";
  height: 220px;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 260px;
}

.auth-brand-decoration {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
}

.auth-brand-decoration-one {
  background: rgba(220, 231, 20, 0.12);
  height: 340px;
  right: -190px;
  top: -140px;
  width: 340px;
}

.auth-brand-decoration-two {
  border-width: 56px;
  bottom: -185px;
  height: 390px;
  left: -205px;
  width: 390px;
}

.auth-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  position: relative;
  width: fit-content;
  z-index: 1;
}

.auth-brand:hover,
.auth-brand:focus {
  color: #fff;
}

.auth-brand-logo {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  padding: 8px;
  width: 52px;
}

.auth-brand-logo img {
  max-height: 100%;
  max-width: 100%;
}

.auth-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-left: 13px;
}

.auth-brand-name strong {
  font-size: 20px;
  letter-spacing: 0.2px;
}

.auth-brand-name small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-brand-content {
  margin: 70px 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.auth-brand-eyebrow {
  background: rgba(220, 231, 20, 0.17);
  border: 1px solid rgba(220, 231, 20, 0.32);
  border-radius: 999px;
  color: #f3f79d;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.auth-brand-content h1 {
  color: #fff;
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.16;
  margin: 24px 0 18px;
}

.auth-brand-content > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 470px;
}

.auth-feature-list {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.auth-feature {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 12px;
}

.auth-feature i {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: var(--auth-accent);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  margin-right: 11px;
  width: 34px;
}

.auth-brand-footer {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.5px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.auth-main {
  background:
    radial-gradient(circle at 92% 5%, rgba(29, 180, 195, 0.12), transparent 25rem),
    linear-gradient(180deg, #f9fcfc 0%, var(--auth-background) 100%);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  padding: 30px clamp(24px, 5vw, 82px) 22px;
}

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

.auth-content {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  padding: 36px 0;
  width: 100%;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  box-shadow: var(--auth-shadow);
  max-width: 500px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  width: 100%;
}

.auth-card-wide {
  max-width: 720px;
}

.auth-content-login {
  align-items: stretch;
  padding: 0;
}

.auth-card-login {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-height: 100%;
  padding: clamp(36px, 6vw, 82px);
}

.auth-page-login .auth-main {
  background: var(--auth-surface);
  padding: 0;
}

.auth-page-login .auth-footer {
  padding: 0 clamp(24px, 4vw, 56px) 20px;
}

@media (min-width: 992px) {
  .auth-page-login .auth-brand-panel {
    flex-basis: 60%;
  }

  .auth-page-login .auth-main {
    flex: 0 0 40%;
  }
}

.auth-card-icon {
  align-items: center;
  background: rgba(11, 183, 165, 0.1);
  border: 1px solid rgba(11, 183, 165, 0.15);
  border-radius: 13px;
  color: var(--auth-primary-dark);
  display: inline-flex;
  font-size: 20px;
  height: 46px;
  justify-content: center;
  margin-bottom: 20px;
  width: 46px;
}

.auth-card-kicker {
  color: var(--auth-primary-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.auth-card h1 {
  color: var(--auth-text);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 0;
}

.auth-card-description {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 10px 0 27px;
}

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

.auth-form label {
  color: var(--auth-text);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.auth-form .form-control {
  background-color: #fbfdfd;
  border: 1px solid #cedfdd;
  border-radius: 11px;
  color: var(--auth-text);
  font-size: 13px;
  height: 48px;
  padding: 11px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-form .form-control::placeholder {
  color: #98a5ad;
}

.auth-form .form-control:focus {
  background-color: #fff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.2rem rgba(11, 183, 165, 0.14);
}

.auth-form .form-control.is-invalid {
  border-color: var(--auth-danger);
}

.auth-password-field {
  position: relative;
}

.auth-password-field .form-control {
  padding-right: 48px;
}

.auth-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--auth-muted);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  outline: none;
  position: absolute;
  right: 4px;
  top: 3px;
  width: 42px;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: var(--auth-primary-dark);
}

.auth-error,
.auth-form .help-block {
  color: var(--auth-danger);
  display: block;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}

.auth-form .help-block:empty {
  display: none;
}

.auth-btn {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.25px;
  min-height: 48px;
  padding: 11px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-btn-primary {
  background: linear-gradient(135deg, var(--auth-primary), #08a391);
  border: 1px solid var(--auth-primary);
  box-shadow: 0 10px 22px rgba(11, 183, 165, 0.22);
  color: #fff;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus {
  background: linear-gradient(135deg, #09a895, var(--auth-primary-dark));
  border-color: var(--auth-primary-dark);
  box-shadow: 0 13px 26px rgba(8, 127, 118, 0.26);
  color: #fff;
  transform: translateY(-1px);
}

.auth-btn-block {
  width: 100%;
}

.auth-form-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 25px;
}

.auth-link {
  color: var(--auth-primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.auth-link:hover,
.auth-link:focus {
  color: #05665f;
  text-decoration: underline;
}

.auth-switch {
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  font-size: 12px;
  margin: 28px 0 0;
  padding-top: 22px;
  text-align: center;
}

.auth-alert {
  border: 0;
  border-left: 4px solid;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 13px 15px;
}

.auth-alert-success {
  background: #eaf8f4;
  border-color: var(--auth-primary);
  color: #176b60;
}

.auth-alert-info {
  background: #eaf7fa;
  border-color: var(--auth-secondary);
  color: #176d76;
}

.auth-alert-warning {
  background: #fff4e7;
  border-color: var(--auth-orange);
  color: #8c4c0c;
}

.auth-alert .alert-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.auth-note {
  align-items: flex-start;
  background: #f2f9f8;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  color: var(--auth-muted);
  display: flex;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 13px;
}

.auth-note i {
  color: var(--auth-primary-dark);
  flex: 0 0 auto;
  margin: 3px 9px 0 0;
}

.auth-verification-illustration {
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 183, 165, 0.1), rgba(29, 180, 195, 0.12));
  border-radius: 50%;
  color: var(--auth-primary-dark);
  display: flex;
  font-size: 38px;
  height: 86px;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  width: 86px;
}

.auth-verification-illustration::after {
  background: var(--auth-accent);
  border: 4px solid #fff;
  border-radius: 50%;
  bottom: 1px;
  content: "";
  height: 23px;
  position: absolute;
  right: 1px;
  width: 23px;
}

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

.auth-footer {
  align-items: center;
  color: var(--auth-muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 10px;
  justify-content: space-between;
  padding-top: 16px;
}

.auth-footer a {
  color: var(--auth-primary-dark);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .auth-brand-panel {
    display: none;
  }

  .auth-main {
    padding: 22px clamp(18px, 5vw, 48px) 18px;
  }

  .auth-mobile-header {
    display: block;
  }

  .auth-page-login .auth-mobile-header {
    padding: 20px clamp(18px, 5vw, 48px) 0;
  }

  .auth-mobile-brand {
    align-items: center;
    color: var(--auth-text);
    display: inline-flex;
  }

  .auth-mobile-brand:hover,
  .auth-mobile-brand:focus {
    color: var(--auth-text);
  }

  .auth-mobile-brand img {
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    height: 42px;
    object-fit: contain;
    padding: 6px;
    width: 42px;
  }

  .auth-mobile-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    margin-left: 10px;
  }

  .auth-mobile-brand strong {
    font-size: 16px;
  }

  .auth-mobile-brand small {
    color: var(--auth-muted);
    font-size: 9px;
    letter-spacing: 0.6px;
    margin-top: 3px;
    text-transform: uppercase;
  }
}

@media (max-width: 575.98px) {
  .auth-main {
    padding: 16px 14px;
  }

  .auth-content {
    align-items: flex-start;
    padding: 28px 0;
  }

  .auth-content-login {
    align-items: stretch;
    padding: 0;
  }

  .auth-card {
    border-radius: 17px;
    padding: 25px 20px;
  }

  .auth-card-login {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100%;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .auth-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 15px;
  }

  .auth-form-actions .auth-btn {
    width: 100%;
  }

  .auth-form-actions .auth-link {
    text-align: center;
  }

  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-btn,
  .auth-form .form-control {
    transition: none;
  }
}
