/* Base styles for auth pages */
* {
  box-sizing: border-box;
  font-family: "Vazirmatn", "Tahoma", sans-serif;
}

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: #fff;
  color: #000;
}

.register-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.promo-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f8;
}

.promo-box {
  text-align: center;
  max-width: 500px;
}

.promo-icon {
  width: 128px;
  height: 128px;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.promo-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}

.promo-desc {
  color: #666;
  font-size: 16px;
}

.form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
}

.form-title {
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
  font-size: 30px;
}

.form-subtitle {
  color: #4b5563;
  font-size: 16px;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  color: #444;
  font-size: 14px;
  position: relative;
  width: 50%;
}

.tab-btn > i {
  margin-left: 10px;
}

.tab-btn.active {
  color: #000;
  font-weight: 700;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #000;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 30px;
}

.subtitle {
  color: #333;
  font-size: 14px;
  line-height: 20px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #000;
  font-size: 16px;
  height: 48px;
  font-weight: 400;
}

.hint {
  font-size: 12px;
  color: #e02424;
  display: none;
  margin-top: 4px;
}

.input-invalid {
  /* border-color: #e02424 !important; */
}

.terms {
  margin: 8px 0;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.actions {
  margin: 16px 0 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.btn:hover {
  background: transparent;
  color: #000;
}

.btn.full {
  width: 100%;
}

.btn.secondary {
  background: #fff;
  color: #000;
}

.msg {
  margin-top: 12px;
  font-size: 13px;
}

.msg.error {
  color: #b00020;
}

.msg.success {
  color: #137300;
}

.helper-links {
  font-size: 14px;
}

.register-link {
  color: #4b5563;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.register-link > a {
  color: #000;
  text-decoration: none;
  margin-right: 5px;
}

.register-link > a:hover {
  text-decoration: underline;
}

.color-000 {
  color: #000;
}

.underline {
  text-decoration: underline;
}

.underline:hover {
  text-decoration: none;
}

.helper-links a {
  color: #000;
}

.preview-image {
  margin-top: 16px;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 980px) {
  .register-layout {
    grid-template-columns: 1fr;
  }

  .promo-pane {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 16px;
  }
}

.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.auth-card.login {
  /* padding:24px; */
  /* background:#fff; */
}

.login-tabs .tab-btn.active::after {
  background: #000;
}

a > .promo-icon {
  position: relative;
}

a > .promo-icon:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  border: 4px solid #000;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

a:hover > .promo-icon:after {
  width: 120%;
  height: 120%;
}
.promo-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
}

/* Centering container for login/auth pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .field-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50px;
  transform: translateY(-50%);
  color: #000;
  vertical-align: middle;
}

.input-with-icon input {
  padding-inline-start: 40px;
}

.input-with-icon .toggle-password {
  position: absolute;
  inset-inline-end: 12px;
  top: 53%;
  /* transform:translateY(-50%); */
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000;
  left: 7px;
  font-size: 16px;
}

.checkbox input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  display: inline-block;
}

.checkbox input:checked {
  background: #000;
}
