/* Auth pages — Quotex-style login / registration layout */

.auth-page {
  overflow-x: hidden;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 64px;
}

.auth-shell {
  width: min(498px, 100%);
  margin: 0 auto;
}

.auth-title {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.auth-card {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: #2b3040;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.auth-card .tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 6px 8px;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 4px;
  gap: 0;
}

.auth-card .tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
  padding: 10px 24px;
  border-radius: 4px;
  user-select: none;
}

.auth-card .tabs button.active {
  background: #353a4d;
  box-shadow: 2px 2px 6px rgba(53, 58, 77, 0.03);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-msg {
  font-size: 14px;
  line-height: 18px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 4px;
  background: hsla(0, 0%, 100%, 0.06);
  color: var(--text-soft);
}

.auth-msg.error {
  color: #ff6251;
  background: rgba(255, 98, 81, 0.12);
  border: 1px solid rgba(255, 98, 81, 0.35);
}

.auth-msg.ok {
  color: #0faf59;
  background: rgba(15, 175, 89, 0.12);
  border: 1px solid rgba(15, 175, 89, 0.35);
}

.auth-form {
  max-width: none;
  width: 100%;
  gap: 24px;
}

.auth-form .field-label {
  background: #2b3040;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -6px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #2b99ff;
}

.auth-link {
  font-size: 13px;
  font-weight: 700;
  color: #2b99ff;
}

.auth-link:hover {
  color: #6ca4f3;
}

.auth-actions {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.btn-auth-primary,
.btn-auth-secondary {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  padding: 16px 20px;
  margin: 0;
}

.btn-auth-primary {
  background: #2b99ff;
  color: #fff;
  box-shadow: 0 4px 10px rgba(2, 111, 211, 0.25);
}

.btn-auth-primary:hover {
  background: #4a8ded;
}

.btn-auth-secondary {
  background: #353a4d;
  color: #fff;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.btn-auth-secondary:hover {
  background: #3b4254;
}

.btn-google {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  padding: 14px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
  background: #f7f8f8;
}

.btn-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: hsla(0, 0%, 100%, 0.12);
}

@media (max-width: 560px) {
  .auth-main {
    padding: 24px 12px 48px;
  }

  .auth-card {
    padding: 22px 16px 26px;
  }

  .auth-card .tabs {
    width: 100%;
  }

  .auth-card .tabs button {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
  }

  .auth-title {
    margin-bottom: 20px;
  }

  .header-btn-login {
    display: none;
  }
}
