:root {
  --auth-primary: #087565;
  --auth-primary-dark: #064e43;
  --auth-gold: #e5bb50;

  --auth-background: #eef3f0;
  --auth-surface: #ffffff;

  --auth-text: #142620;
  --auth-muted: #6b7c76;
  --auth-border: #dce6e1;

  --auth-error: #dc2626;
}

/* ==============================
   RESET
============================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

button,
input {
  font: inherit;
}

/* ==============================
   PAGE
============================== */

.auth-page {
  min-height: 100vh;

  padding: 32px;

  display: flex;

  align-items: center;

  justify-content: center;

  direction: rtl;

  color: var(--auth-text);

  background-image: none;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(229, 187, 80, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(8, 117, 101, 0.12),
      transparent 30%
    ),
    var(--auth-background);

  font-family: Arial, Helvetica, sans-serif;
}

/* ==============================
   MAIN LAYOUT
============================== */

.auth-layout {
  width: min(1080px, 100%);

  min-height: 650px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(390px, 0.85fr);

  overflow: hidden;

  border: 1px solid rgba(8, 82, 69, 0.1);

  border-radius: 30px;

  background: var(--auth-surface);

  box-shadow: 0 32px 90px rgba(20, 58, 49, 0.14);
}

/* ==============================
   INTRO SECTION
============================== */

.auth-intro {
  position: relative;

  min-width: 0;

  padding: 48px 52px 44px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  overflow: hidden;

  isolation: isolate;

  color: white;

  background: linear-gradient(145deg, #063d35 0%, #07584a 58%, #087361 100%);
}

.auth-intro::before {
  content: "";

  position: absolute;

  z-index: -1;

  width: 320px;

  height: 320px;

  left: -120px;

  bottom: -140px;

  border-radius: 50%;

  background: rgba(229, 187, 80, 0.13);
}

/* ==============================
   BRAND
============================== */

.auth-brand {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 25px;

  font-weight: 800;
}

.auth-brand-logo {
  width: 42px;

  height: 42px;

  display: grid;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.1);

  color: var(--auth-gold);

  font-size: 22px;

  font-weight: 900;
}

/* ==============================
   INTRO CONTENT
============================== */

.auth-intro-content {
  position: relative;

  z-index: 2;

  max-width: 470px;

  margin: auto 0;

  padding: 45px 0;
}

.auth-intro-label {
  display: inline-flex;

  padding: 7px 13px;

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  color: #c7ddd7;

  font-size: 12px;
}

.auth-intro-content h1 {
  margin: 21px 0 18px;

  font-size: clamp(40px, 4vw, 58px);

  line-height: 1.3;

  letter-spacing: -2px;
}

.auth-intro-content h1 strong {
  display: block;

  color: var(--auth-gold);
}

.auth-intro-content p {
  max-width: 410px;

  margin: 0;

  color: #bfd4ce;

  font-size: 15px;

  line-height: 2;
}

/* ==============================
   FEATURES
============================== */

.auth-features {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;
}

.auth-feature {
  display: flex;

  flex-direction: column;

  gap: 5px;

  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-feature-number {
  color: var(--auth-gold);

  font-size: 11px;
}

.auth-feature strong {
  font-size: 12px;
}

.auth-feature small {
  color: #a9c3bc;

  font-size: 10px;

  line-height: 1.6;
}

/* ==============================
   DECORATIVE CIRCLES
============================== */

.auth-circle {
  position: absolute;

  z-index: -1;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.auth-circle-large {
  width: 390px;

  height: 390px;

  top: 90px;

  left: -140px;
}

.auth-circle-small {
  width: 240px;

  height: 240px;

  top: 165px;

  left: -60px;
}

/* ==============================
   FORM SECTION
============================== */

.auth-form-section {
  display: flex;

  align-items: center;

  justify-content: center;

  padding: 52px;

  background: var(--auth-surface);
}

.auth-form-container {
  width: 100%;

  max-width: 380px;
}

/* ==============================
   FORM HEADER
============================== */

.auth-header {
  margin-bottom: 30px;
}

.auth-header-label {
  display: block;

  margin-bottom: 8px;

  color: #a57914;

  font-size: 12px;

  font-weight: 700;
}

.auth-header h2 {
  margin: 0;

  color: var(--auth-text);

  font-size: 30px;

  font-weight: 800;
}

.auth-header p {
  margin: 10px 0 0;

  color: var(--auth-muted);

  font-size: 14px;

  line-height: 1.8;
}

/* ==============================
   FORM FIELDS
============================== */

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;

  margin-bottom: 9px;

  color: #293e37;

  font-size: 13px;

  font-weight: 700;
}

.auth-input {
  position: relative;
}

.auth-input-icon {
  position: absolute;

  top: 50%;

  right: 15px;

  width: 20px;

  height: 20px;

  transform: translateY(-50%);

  fill: none;

  stroke: #789087;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;

  pointer-events: none;
}

.auth-input input {
  width: 100%;

  height: 52px;

  padding: 0 45px;

  border: 1px solid var(--auth-border);

  border-radius: 13px;

  outline: none;

  background: #f9fcfa;

  color: var(--auth-text);

  font-size: 14px;

  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.auth-input input:focus {
  border-color: var(--auth-primary);

  background: white;

  box-shadow: 0 0 0 3px rgba(8, 117, 101, 0.12);
}

.auth-input input[type="email"] {
  direction: ltr;

  text-align: left;
}

.auth-input input::placeholder {
  color: #9aaa9f;
}

/* ==============================
   PASSWORD TOGGLE
============================== */

.password-toggle {
  position: absolute;

  top: 50%;

  left: 10px;

  min-width: 50px;

  padding: 7px;

  border: none;

  border-radius: 8px;

  transform: translateY(-50%);

  background: transparent;

  color: var(--auth-primary);

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;
}

.password-toggle:hover {
  background: #eaf4ef;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--auth-primary);

  outline-offset: 2px;
}

/* ==============================
   ERROR MESSAGE
============================== */

.auth-error {
  min-height: 0;

  margin: 0;

  color: var(--auth-error);

  font-size: 13px;

  line-height: 1.6;
}

.auth-error:not(:empty) {
  min-height: 20px;

  margin: -3px 0 14px;

  padding: 9px 11px;

  border: 1px solid #fecaca;

  border-radius: 10px;

  background: #fff1f2;
}

/* ==============================
   SUBMIT BUTTON
============================== */

.auth-submit {
  width: 100%;

  height: 52px;

  margin-top: 5px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  border: none;

  border-radius: 13px;

  color: white;

  background: linear-gradient(
    135deg,
    var(--auth-primary),
    var(--auth-primary-dark)
  );

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 9px 22px rgba(8, 117, 101, 0.22);

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.auth-submit svg {
  width: 19px;

  height: 19px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;

  transition: transform 0.2s;
}

.auth-submit:hover {
  transform: translateY(-1px);

  box-shadow: 0 12px 27px rgba(8, 117, 101, 0.28);
}

.auth-submit:hover svg {
  transform: translateX(-3px);
}

.auth-submit:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  transform: none;
}

/* ==============================
   FOOTER
============================== */

.auth-footer {
  margin-top: 25px;

  padding-top: 21px;

  border-top: 1px solid #e5ede9;

  text-align: center;

  color: var(--auth-muted);

  font-size: 13px;
}

.auth-footer a {
  margin-right: 5px;

  color: var(--auth-primary);

  font-weight: 700;

  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ==============================
   TABLET
============================== */

@media (max-width: 900px) {
  .auth-page {
    padding: 0;

    align-items: stretch;

    background: white;
  }

  .auth-layout {
    display: block;

    min-height: 100vh;

    border: none;

    border-radius: 0;

    box-shadow: none;
  }

  .auth-intro {
    min-height: 250px;

    padding: 28px 24px 35px;

    border-radius: 0 0 28px 28px;
  }

  .auth-intro-content {
    margin: 35px 0 0;

    padding: 0;
  }

  .auth-intro-content h1 {
    margin: 14px 0 9px;

    font-size: 34px;
  }

  .auth-intro-content p {
    max-width: 520px;

    font-size: 13px;
  }

  .auth-features {
    display: none;
  }

  .auth-form-section {
    min-height: calc(100vh - 250px);

    padding: 40px max(24px, calc((100vw - 430px) / 2));
  }
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 520px) {
  .auth-intro {
    min-height: 215px;

    padding: 24px 22px 30px;
  }

  .auth-brand {
    font-size: 21px;
  }

  .auth-brand-logo {
    width: 37px;

    height: 37px;

    border-radius: 11px;

    font-size: 19px;
  }

  .auth-intro-content {
    margin-top: 23px;
  }

  .auth-intro-content h1 {
    font-size: 30px;
  }

  .auth-intro-content p {
    display: none;
  }

  .auth-form-section {
    min-height: calc(100vh - 215px);

    padding: 32px 22px 24px;
  }

  .auth-header {
    margin-bottom: 24px;
  }

  .auth-header h2 {
    font-size: 26px;
  }
}
