:root {
  --naruke-bg: #fcfcfc;
  --naruke-surface: rgba(255, 255, 255, 0.92);
  --naruke-text: #111111;
  --naruke-muted: #727272;
  --naruke-line: #ececec;
  --naruke-soft: #f7f7f7;
  --naruke-accent: #ff9412;
  --naruke-accent-soft: rgba(255, 148, 18, 0.14);
  --naruke-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  --naruke-radius-xl: 28px;
  --naruke-radius-lg: 22px;
  --naruke-radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--naruke-text);
  /* background:
    radial-gradient(circle at top left, rgba(255, 148, 18, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 148, 18, 0.06), transparent 24%),
    var(--naruke-bg); */
}

body a {
  color: inherit;
  text-decoration: none;
}

/* Chrome / Edge autofill fix */
.form-input:-webkit-autofill {
  -webkit-text-fill-color: var(--naruke-text) !important;
  caret-color: var(--naruke-text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  border: 1px solid var(--naruke-line) !important;
  border-radius: 50px !important;
  transition: background-color 9999s ease-in-out 0s;
}
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  border: 1px solid var(--naruke-accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 148, 18, 0.12) !important;
}

/* Header */
.auth-page-header {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 6rem 16px 24px;
}

.auth-topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 52px;
}

.auth-brand {
  display: inline-block;
}

header {
  box-shadow: none;
}

.auth-brand h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--naruke-accent);
}

.auth-page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 600;
}

/* Language switcher */
.lang-switcher-btn {
  position: absolute;
  top: 0;
  right: 10rem;
  min-width: 74px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--naruke-line);
  border-radius: 999px;
  background: #fff;
  color: var(--naruke-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher-btn:hover {
  border-color: var(--naruke-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 148, 18, 0.12);
}

.lang-switcher-btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Main */
.auth-shell {
  padding: 0 16px 56px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  padding-top: 0;
  padding-bottom: 0;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 50px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-alert.is-error {
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
  border: 1px solid rgba(220, 53, 69, 0.12);
}

.auth-alert.is-success {
  background: rgba(43, 182, 115, 0.11);
  color: #147a48;
  border: 1px solid rgba(43, 182, 115, 0.15);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--naruke-line);
  border-radius: 50px;
  background: #fff;
  font: inherit;
  color: var(--naruke-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-input::placeholder {
  color: #b0b0b0;
}

.form-input:focus {
  outline: none;
  border-color: var(--naruke-accent);
  box-shadow: 0 0 0 4px rgba(255, 148, 18, 0.12);
}

.form-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.09);
}

.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 8px;
}

.auth-forgot a {
  color: var(--naruke-muted);
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.auth-forgot a:hover {
  opacity: 0.82;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button--primary {
  background: var(--naruke-accent);
    background: #fff;
  color: var(--naruke-accent);
  border: 2px solid var(--naruke-accent);
  /* box-shadow: 0 12px 30px rgba(255, 148, 18, 0.22); */
}

.button--primary:hover {
  transition: .2s;
  color: #fff;
  background: var(--naruke-accent);
}

.auth-link {
  margin-top: 28px;
  text-align: center;
  color: var(--naruke-muted);
  font-size: 14px;
}

.auth-link a {
  color: var(--naruke-accent);
  font-weight: 700;
}

/* Language modal */
.lang-modal[hidden] {
  display: none;
}

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(3px);
}

.lang-modal__dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--naruke-shadow);
  padding: 22px;
}

.lang-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lang-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.lang-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--naruke-line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lang-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lang-chip {
  min-height: 52px;
  border: 1px solid var(--naruke-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lang-chip:hover {
  border-color: var(--naruke-accent);
  transform: translateY(-1px);
}

.lang-chip.is-active {
  border-color: var(--naruke-accent);
}

.lang-chip__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .auth-page-header {
    padding-top: 3rem;
  }

  .lang-switcher-btn {
    right: 0;
    top: -6px;
  }

  .auth-card {
    padding: 24px 8px 0;
  }
}

@media (max-width: 480px) {
  .auth-brand h1 {
    font-size: 24px;
  }

  .button {
    width: 100%;
  }

  .lang-modal__grid {
    grid-template-columns: 1fr;
  }

  .auth-forgot {
    justify-content: center;
  }
      .button--primary{
    max-width: 60vw;
  }
}