@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Regular.ea8cfea19e17.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* متغیرهای رنگ برند از assets/css/brand-vars.css می‌آید (باید قبل از این فایل لود شود) */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazir", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, #141210 0%, var(--black) 60%);
  color: #f2ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.auth-side {
  position: relative;
  padding: 48px 36px;
  background: linear-gradient(155deg, #1a1712 0%, var(--black) 75%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, var(--shadow-gold) 50%, transparent 60%);
  opacity: 0.06;
  pointer-events: none;
}

.brand-mark {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.auth-side h1 {
  font-size: 30px;
  line-height: 1.6;
  margin: 28px 0 12px;
  color: #fff;
}

.auth-side p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 15px;
}

.auth-side .signature-line {
  height: 1px;
  width: 64px;
  background: var(--gold);
  margin: 24px 0;
}

.auth-form-wrap {
  padding: 48px 40px;
}

.auth-form-wrap h2 {
  font-size: 24px;
  margin: 0 0 6px;
  color: #fff;
}

.auth-form-wrap .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
}

/* آپلود آواتار پروفایل */
.avatar-upload-preview {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
  position: relative;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initial-big {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  font-weight: 800;
  font-size: 34px;
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.avatar-upload-btn:hover {
  background: rgba(212, 175, 55, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-gold {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #1a1508;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.flash-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.flash-list li {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

.flash-list li.error {
  background: rgba(226, 96, 96, 0.12);
  border: 1px solid rgba(226, 96, 96, 0.4);
  color: #ff9c9c;
}

.flash-list li.success {
  background: rgba(76, 175, 125, 0.12);
  border: 1px solid rgba(76, 175, 125, 0.4);
  color: #8be6b8;
}

.back-home {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.back-home:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
}
