:root {
  --bg: #090909;
  --bg-soft: #101010;
  --card: #151515;
  --orange: #ff6a33;
  --orange-hover: #ff7b4b;
  --text: #ffffff;
  --muted: #999999;
  --line: rgba(255, 255, 255, 0.09);
  --danger: #ff5757;
  --success: #42d67b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
}

.auth-side {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 55px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.96)),
    url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1200&q=85') center/cover no-repeat;
}

.auth-side::after {
  content: '';
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  background: rgba(255, 106, 51, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-icon {
  font-size: 30px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-text strong {
  color: #fff;
  font-weight: 800;
}

.brand-text em {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

.auth-side-content {
  position: relative;
  z-index: 2;
  max-width: 570px;
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-side-content h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -2.5px;
}

.auth-side-content > p {
  max-width: 510px;
  margin-bottom: 34px;
  color: #bdbdbd;
  font-size: 17px;
  line-height: 1.7;
}

.city-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  padding: 18px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 106, 51, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.city-notice > span {
  flex-shrink: 0;
  font-size: 27px;
}

.city-notice strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}

.city-notice small {
  display: block;
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

.auth-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
  background: #0b0b0b;
}

.auth-box {
  width: 100%;
  max-width: 560px;
}

.auth-header {
  margin-bottom: 28px;
}

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 35px;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.back-link:hover {
  color: var(--orange);
}

.auth-header h2 {
  margin-bottom: 7px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.auth-header p {
  color: var(--muted);
  font-size: 14px;
}

.alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.alert-error {
  background: rgba(255, 87, 87, 0.1);
  color: #ff7979;
  border: 1px solid rgba(255, 87, 87, 0.25);
}

.alert-success {
  background: rgba(66, 214, 123, 0.1);
  color: #62e291;
  border: 1px solid rgba(66, 214, 123, 0.25);
}

.profile-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.profile-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px;
  background: #121212;
  border: 1px solid #292929;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.profile-option:hover {
  border-color: rgba(255, 106, 51, 0.55);
  background: #161616;
}

.profile-option.active {
  background: rgba(255, 106, 51, 0.08);
  border-color: var(--orange);
}

.profile-option:has(input:checked) {
  background: rgba(255, 106, 51, 0.08);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 51, 0.05);
}

.profile-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 106, 51, 0.1);
  border-radius: 10px;
  font-size: 21px;
}

.profile-option strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.profile-option small {
  display: block;
  color: #888;
  font-size: 10px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  border: 1px solid #292929;
  border-radius: 9px;
  outline: none;
  transition: 0.2s;
}

.form-group input::placeholder {
  color: #606060;
}

.form-group input:hover {
  border-color: #3a3a3a;
}

.form-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 51, 0.08);
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 10px;
}

.city-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  padding: 14px;
  background: rgba(255, 106, 51, 0.05);
  border: 1px solid rgba(255, 106, 51, 0.16);
  border-radius: 10px;
  cursor: pointer;
}

.city-confirm input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}

.city-confirm span {
  color: #aaa;
  font-size: 11px;
  line-height: 1.5;
}

.city-confirm strong {
  color: #ddd;
}

.btn-submit {
  width: 100%;
  height: 52px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 10px 30px rgba(255, 106, 51, 0.16);
}

.btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.login-text {
  margin-top: 22px;
  color: #777;
  text-align: center;
  font-size: 12px;
}

.login-text a {
  color: var(--orange);
  font-weight: 700;
}

.login-text a:hover {
  text-decoration: underline;
}

@media (max-width: 950px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: auto;
    padding: 30px;
  }

  .auth-side-content {
    max-width: 650px;
    padding: 65px 0 35px;
  }

  .auth-side-content h1 {
    max-width: 600px;
    font-size: 45px;
  }

  .auth-content {
    min-height: auto;
    padding: 55px 25px 70px;
  }

  .auth-box {
    max-width: 620px;
  }

  .back-link {
    margin-bottom: 25px;
  }
}

@media (max-width: 600px) {
  .auth-side {
    padding: 22px 18px;
  }

  .brand-icon {
    font-size: 25px;
  }

  .brand-text {
    font-size: 17px;
  }

  .auth-side-content {
    padding: 50px 0 20px;
  }

  .auth-side-content h1 {
    font-size: 36px;
    letter-spacing: -1.8px;
  }

  .auth-side-content > p {
    font-size: 14px;
  }

  .city-notice {
    padding: 14px;
  }

  .auth-content {
    padding: 42px 16px 60px;
  }

  .auth-header h2 {
    font-size: 32px;
  }

  .profile-selector {
    grid-template-columns: 1fr;
  }

  .profile-option {
    min-height: 74px;
  }

  .form-group input {
    height: 50px;
    font-size: 16px;
  }

  .btn-submit {
    height: 54px;
  }
}


.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 50px;
}

.show-password {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}

.show-password:hover {
  opacity: 0.8;
}