/* ==========================================================================
   White Chalk - Auth Stylesheet (Modern & Scaled Up)
   ========================================================================== */

:root {
  --green: #184c3a;
  --green-light: #e9f3ef;
  --dark: #102c21;
  --cream: #f8f6ef;
  --gold: #e9b858;
  --white: #ffffff;
  --text: #17211d;
  --muted: #57655f;
  --border: #e1e7e3;
}

.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  font-size: 16px;
}

.auth-shell {
  width: min(1320px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-direction: column;
}

.auth-brand {
  width: max-content;
  margin-bottom: 26px;
}

.auth-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.auth-topbar .auth-brand {
  margin-bottom: 0;
}

.auth-topbar .language-menu {
  z-index: 30;
}

.auth-layout {
  min-height: 720px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 30px 85px rgba(16, 44, 33, 0.1);
}

.auth-card {
  width: min(100%, 640px);
  margin: auto;
  padding: 56px 68px;
}

.auth-heading > span,
.auth-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.auth-heading h1 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.auth-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.field-group > input,
.password-field input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #fcfdfc;
  color: var(--text);
  font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 76, 58, 0.1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

html[dir="rtl"] .password-field input {
  padding-right: 18px;
  padding-left: 76px;
}

.password-field button {
  position: absolute;
  right: 8px;
  top: 9px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

html[dir="rtl"] .password-field button {
  right: auto;
  left: 8px;
}

.remember-field {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.remember-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.auth-forgot-link {
  width: max-content;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.field-error,
.field-help {
  margin-top: 6px;
  font-size: 13px;
}

.field-error { color: #a53939; font-weight: 600; }
.field-help { color: var(--muted); }

.form-alert {
  padding: 14px 18px;
  border: 1px solid #f0cccc;
  border-radius: 12px;
  background: #fff4f4;
  color: #913737;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  height: 54px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(24, 76, 58, 0.22);
  transition: transform 0.2s, background-color 0.2s;
}

.auth-submit:hover {
  background: #143d2f;
  transform: translateY(-1px);
}

.auth-switch {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  background: radial-gradient(circle at 75% 25%, #246651 0%, var(--green) 45%, var(--dark) 100%);
  color: #fff;
  overflow: hidden;
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-one {
  width: 520px;
  height: 520px;
  right: -130px;
  top: -110px;
}

.orbit-two {
  width: 340px;
  height: 340px;
  right: -50px;
  top: 150px;
}

.auth-visual-copy {
  position: relative;
  z-index: 2;
}

.auth-visual-copy .auth-kicker {
  color: #9fe2c7;
}

.auth-visual-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.auth-visual-copy p {
  max-width: 440px;
  color: #d6e8e0;
  font-size: 16px;
  line-height: 1.65;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.auth-feature b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-feature svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2.2;
  fill: none;
}

.auth-feature strong {
  display: block;
  font-size: 15.5px;
}

.auth-feature small {
  color: #d6e8e0;
  font-size: 13.5px;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-card {
    padding: 44px 30px;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    width: calc(100% - 24px);
    padding: 20px 0;
  }
  .auth-card {
    padding: 32px 18px;
  }
  .name-fields {
    grid-template-columns: 1fr;
  }
}
