/* =========================================================
   ATHENA FOODGO V2
   BLUE THEME — GLOBAL + LOGIN PORTAL
   File: index.css
   ========================================================= */

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --primary: #155eef;
  --primary-dark: #0f49c7;
  --primary-deep: #0b3a9e;
  --primary-light: #eaf2ff;
  --primary-soft: #f5f8ff;
  --primary-glow: rgba(21, 94, 239, 0.18);

  --secondary: #0d1b3e;
  --secondary-light: #1c315f;

  --success: #17966f;
  --success-light: #eafaf4;

  --danger: #dc3545;
  --danger-light: #fff0f1;

  --warning: #f4a325;

  --white: #ffffff;
  --page-bg: #f4f7fc;

  --text-main: #172033;
  --text-secondary: #657086;
  --text-muted: #8c95a7;

  --border: #e1e7f0;
  --border-dark: #cbd5e3;

  --shadow-sm: 0 8px 24px rgba(13, 27, 62, 0.07);
  --shadow-md: 0 20px 50px rgba(13, 27, 62, 0.11);
  --shadow-lg: 0 30px 80px rgba(13, 27, 62, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;

  --transition: 0.25s ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input {
  min-width: 0;
}

input::placeholder {
  color: #a2a9b8;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.2);
  outline-offset: 2px;
}

/* =========================================================
   BACKGROUND DECORATIONS
   ========================================================= */

.background-decoration {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.background-decoration-one {
  top: -180px;
  left: -150px;
  width: 440px;
  height: 440px;
  background: rgba(21, 94, 239, 0.1);
}

.background-decoration-two {
  right: -190px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  background: rgba(13, 27, 62, 0.08);
}

/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.auth-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(520px, 1.05fr);
  width: 100%;
  min-height: 100vh;
}

/* =========================================================
   LEFT BRAND SECTION
   ========================================================= */

.brand-section {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 36px clamp(32px, 5vw, 82px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(76, 132, 255, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(21, 94, 239, 0.32),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #07152f 0%,
      #0b234d 48%,
      #103873 100%
    );
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 90px;
  right: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.brand-section::after {
  content: "";
  position: absolute;
  right: 70px;
  bottom: 85px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.brand-header,
.brand-content,
.brand-footer {
  position: relative;
  z-index: 2;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-logo-icon {
  display: grid;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, #155eef, #4f8cff);
  box-shadow: 0 12px 30px rgba(21, 94, 239, 0.36);
}

.brand-logo-icon i {
  font-size: 21px;
}

.brand-logo-text {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: -0.6px;
}

.brand-logo-text strong {
  font-weight: 800;
}

.brand-logo-text span {
  margin-left: 4px;
  color: #5b94ff;
  font-weight: 800;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.location-badge i {
  color: #75a4ff;
}

.brand-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: 70px 0;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 26px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(21, 94, 239, 0.36);
}

.brand-content h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.3vw, 66px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}

.brand-content h1 span {
  display: block;
  color: #75a4ff;
}

.brand-description {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 17px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 21px;
  margin-top: 42px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #75a4ff;
  background: rgba(255, 255, 255, 0.07);
}

.feature-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
}

.feature-item p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.brand-footer {
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.brand-footer i {
  margin: 0 3px;
  color: #75a4ff;
}

.brand-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.brand-footer a:hover {
  color: var(--white);
}

/* =========================================================
   RIGHT FORM SECTION
   ========================================================= */

.form-section {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px clamp(26px, 5vw, 90px);
}

.mobile-brand-header {
  display: none;
}

.form-section .brand-logo-text {
  color: var(--secondary);
}

.form-section .brand-logo-text span {
  color: var(--primary);
}

.form-section .location-badge {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--white);
}

.form-section .location-badge i {
  color: var(--primary);
}

.auth-card {
  width: 100%;
  max-width: 530px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(225, 231, 240, 0.88);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.auth-view {
  display: none;
  animation: authViewFade 0.35s ease;
}

.auth-view.active {
  display: block;
}

@keyframes authViewFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   AUTH HEADINGS
   ========================================================= */

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading.centered {
  text-align: center;
}

.auth-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.auth-heading h2 {
  margin-bottom: 9px;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.auth-heading p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   GOOGLE BUTTON
   ========================================================= */

.google-button {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text-main);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.google-button:hover {
  border-color: #b8c9e7;
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.google-button:active {
  transform: translateY(0);
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* =========================================================
   DIVIDER
   ========================================================= */

.form-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.form-divider::before,
.form-divider::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label,
.label-row label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 47px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  color: var(--text-main);
  background: #fbfcff;
  font-size: 14px;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.input-wrapper input:hover {
  border-color: var(--border-dark);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.11);
}

.input-wrapper input.input-error {
  border-color: var(--danger);
  background: var(--danger-light);
}

.input-wrapper input.input-success {
  border-color: var(--success);
}

.input-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  display: grid;
  color: #9099aa;
  pointer-events: none;
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.password-toggle {
  position: absolute;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #7e8799;
  background: transparent;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition);
}

.password-toggle:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* =========================================================
   PHONE NUMBER FIELD
   ========================================================= */

.phone-input-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}

.country-code {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text-main);
  background: #fbfcff;
  font-size: 14px;
}

.country-code strong {
  font-size: 13px;
}

.phone-number-wrapper input {
  padding-right: 16px;
}

.required-label {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
  text-transform: uppercase;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   FIELD ERRORS
   ========================================================= */

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

/* =========================================================
   MESSAGE BOX
   ========================================================= */

.message-box {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.message-box.show {
  display: flex;
}

.message-box.success {
  border-color: rgba(23, 150, 111, 0.2);
  color: #137656;
  background: var(--success-light);
}

.message-box.error {
  border-color: rgba(220, 53, 69, 0.2);
  color: #b02b38;
  background: var(--danger-light);
}

.message-box.warning {
  border-color: rgba(244, 163, 37, 0.25);
  color: #9e6412;
  background: #fff8e9;
}

/* =========================================================
   LOGIN OPTIONS AND CHECKBOXES
   ========================================================= */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
}

.checkbox-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  position: relative;
  display: grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border: 1.5px solid var(--border-dark);
  border-radius: 5px;
  background: var(--white);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.checkbox-label:hover .custom-checkbox {
  border-color: var(--primary);
}

.checkbox-label input:checked + .custom-checkbox {
  border-color: var(--primary);
  background: var(--primary);
}

.checkbox-label input:checked + .custom-checkbox::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.checkbox-label input:focus-visible + .custom-checkbox {
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.11);
}

.terms-checkbox {
  margin: 5px 0 18px;
}

/* =========================================================
   PRIMARY AND SECONDARY BUTTONS
   ========================================================= */

.primary-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, #155eef, #3978f6);
  box-shadow: 0 12px 25px rgba(21, 94, 239, 0.25);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.primary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.primary-button:hover::before {
  left: 130%;
}

.primary-button:hover {
  box-shadow: 0 15px 32px rgba(21, 94, 239, 0.34);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.button-loader {
  display: none;
}

.primary-button.loading .button-text {
  display: none;
}

.primary-button.loading .button-loader {
  display: inline-flex;
}

.secondary-button {
  min-width: 110px;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-main);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.text-button,
.inline-link {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition);
}

.text-button:hover,
.inline-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.forgot-password-button {
  font-size: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--transition),
    transform var(--transition);
}

.back-button:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

/* =========================================================
   AUTH SWITCH
   ========================================================= */

.auth-switch-text {
  margin-top: 23px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   PASSWORD STRENGTH
   ========================================================= */

.password-strength {
  margin-top: 9px;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.strength-bars span {
  height: 4px;
  border-radius: 999px;
  background: #e6e9ef;
  transition: background-color var(--transition);
}

.password-strength.weak .strength-bars span:nth-child(1) {
  background: var(--danger);
}

.password-strength.fair .strength-bars span:nth-child(-n + 2) {
  background: var(--warning);
}

.password-strength.good .strength-bars span:nth-child(-n + 3) {
  background: #5084ed;
}

.password-strength.strong .strength-bars span {
  background: var(--success);
}

.password-strength small {
  color: var(--text-muted);
  font-size: 10px;
}

/* =========================================================
   PARTNER REGISTRATION
   ========================================================= */

.partner-registration {
  margin-top: 27px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.partner-registration > p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.partner-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.partner-links a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-main);
  background: #fbfcff;
  font-size: 11px;
  font-weight: 700;
  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.partner-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.forgot-password-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 10px 25px rgba(21, 94, 239, 0.12);
  font-size: 23px;
}

/* =========================================================
   SECURITY NOTE AND FOOTER
   ========================================================= */

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 520px;
  margin-top: 19px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.security-note i {
  color: var(--success);
}

.mobile-footer {
  display: none;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.mobile-footer a {
  color: var(--primary);
  font-weight: 700;
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 45, 0.68);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.28s ease;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(15px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-label {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-header h3 {
  margin-top: 2px;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 22px;
}

.modal-close-button {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--text-secondary);
  background: var(--page-bg);
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition);
}

.modal-close-button:hover {
  color: var(--danger);
  background: var(--danger-light);
}

.modal-body {
  max-height: 55vh;
  overflow-y: auto;
  padding: 24px 26px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.modal-body p + p {
  margin-top: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   LOADING OVERLAY
   ========================================================= */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(244, 247, 252, 0.93);
  backdrop-filter: blur(10px);
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.loading-overlay.active {
  visibility: visible;
  opacity: 1;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  display: grid;
  width: 61px;
  height: 61px;
  margin-bottom: 19px;
  place-items: center;
  border-radius: 19px;
  color: var(--white);
  background: linear-gradient(135deg, #155eef, #4f8cff);
  box-shadow: 0 14px 35px rgba(21, 94, 239, 0.3);
  font-size: 23px;
}

.loading-spinner {
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  border: 3px solid rgba(21, 94, 239, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loadingSpin 0.7s linear infinite;
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.loading-content p {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   NOSCRIPT MESSAGE
   ========================================================= */

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 380px;
  padding: 14px 17px;
  border-radius: 12px;
  color: var(--white);
  background: var(--danger);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}

/* =========================================================
   LARGE LAPTOPS
   ========================================================= */

@media (max-width: 1250px) {
  .auth-page {
    grid-template-columns: minmax(390px, 0.88fr) minmax(500px, 1.12fr);
  }

  .brand-section {
    padding-right: 48px;
    padding-left: 48px;
  }

  .brand-content h1 {
    font-size: 48px;
  }

  .form-section {
    padding-right: 45px;
    padding-left: 45px;
  }
}

/* =========================================================
   TABLET LANDSCAPE
   ========================================================= */

@media (max-width: 1024px) {
  .auth-page {
    display: block;
  }

  .brand-section {
    display: none;
  }

  .form-section {
    min-height: 100vh;
    justify-content: flex-start;
    padding: 24px 28px 40px;
  }

  .mobile-brand-header {
    display: flex;
    width: 100%;
    max-width: 580px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 28px;
  }

  .auth-card {
    max-width: 580px;
  }

  .mobile-footer {
    display: block;
  }
}

/* =========================================================
   TABLET PORTRAIT
   ========================================================= */

@media (max-width: 768px) {
  .form-section {
    padding: 20px;
  }

  .auth-card {
    padding: 35px;
    border-radius: 24px;
  }

  .auth-heading h2 {
    font-size: 30px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
  body {
    background: var(--white);
  }

  .background-decoration {
    display: none;
  }

  .form-section {
    padding: 16px 16px 28px;
  }

  .mobile-brand-header {
    margin-bottom: 21px;
  }

  .brand-logo {
    gap: 9px;
  }

  .brand-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-logo-text {
    font-size: 18px;
  }

  .mobile-brand-header .location-badge {
    padding: 8px 10px;
    font-size: 11px;
  }

  .auth-card {
    padding: 27px 21px;
    border: 1px solid var(--border);
    border-radius: 21px;
    box-shadow: 0 12px 38px rgba(13, 27, 62, 0.07);
  }

  .auth-heading {
    margin-bottom: 23px;
  }

  .auth-heading h2 {
    font-size: 27px;
  }

  .auth-heading p {
    font-size: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .phone-input-group {
    grid-template-columns: 100px 1fr;
  }

  .country-code {
    padding: 0 11px;
  }

  .partner-links {
    grid-template-columns: 1fr;
  }

  .form-divider {
    font-size: 11px;
  }

  .security-note {
    padding: 0 10px;
    line-height: 1.5;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    max-width: none;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-header {
    padding: 21px 20px 16px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 20px 20px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
  .form-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .auth-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .mobile-brand-header .location-badge span {
    display: none;
  }

  .mobile-brand-header .location-badge {
    width: 39px;
    height: 39px;
    justify-content: center;
    padding: 0;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .phone-input-group {
    grid-template-columns: 92px 1fr;
  }

  .country-code {
    gap: 4px;
    padding: 0 8px;
    font-size: 12px;
  }

  .input-wrapper input {
    padding-right: 42px;
    padding-left: 43px;
    font-size: 13px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}