/* styles.css */
/* ===== Reset ===== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    "Vazirmatn",
    "IRANSans",
    sans-serif;
}

/* ===== Layout ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
}

/* ===== Left Panel (Slider) ===== */
.left-panel {
  flex: 1 1 58%;
  padding: 22px 22px 22px 26px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.slider {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: stretch;
}
.logo img {
  width: 70px;
  height: 70px;
  margin-bottom: 30px;
}

.slide {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 520px;
  display: none;
}
.slide.is-active {
  display: block;
}

.slide__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  /* ارتفاع نوار پایین */
  min-height: 190px;

  /* این باعث میشه متن داخل نوار قرار بگیره */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 22px 22px 20px 22px;

  /* خودِ اوورلای (نوار نیمه‌شفاف) */
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* خط جداکننده مثل عکس */
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.quote {
  margin: 0 0 18px 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.7;
  max-width: 520px;
}

.meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.stars {
  color: #ffffff;
  letter-spacing: 2px;
  font-size: 14px;
  opacity: 0.95;
}

.author {
  text-align: right;
  color: #ffffff;
}
.author__name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.author__role {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.5;
}

.nav {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 10px;
}
.nav__btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.nav__btn:active {
  transform: translateY(1px);
}

/* ===== Right Panel (Form) ===== */
.right-panel {
  flex: 1 1 42%;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
}

.logo {
  width: 70px;
  height: 70px;
  margin: 8px auto 8px auto;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  margin: 8px 0 6px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
.subtitle {
  margin: 0 0 16px 0;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.9;
}

.form {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 12px;
  color: #374151;
}

.input-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 13px;
  background: #ffffff;
}
.input:focus {
  border-color: rgba(109, 70, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 70, 255, 0.12);
}

.icon-btn {
  position: absolute;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
}
.icon-btn:hover {
  opacity: 1;
}

.hint {
  font-size: 12px;
  color: #6b7280;
}

.error {
  font-size: 12px;
  color: #dc2626;
  min-height: 16px;
}

.btn {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: #7f56d9;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 14px 26px rgba(109, 70, 255, 0.2);
}
.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.btn:active {
  transform: translateY(1px);
}

.success {
  margin-top: 10px;
  font-size: 12px;
  color: #16a34a;
  min-height: 16px;
  text-align: center;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .left-panel {
    flex-basis: 54%;
  }
  .right-panel {
    flex-basis: 46%;
  }
  .quote {
    font-size: 20px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .page {
    flex-direction: column;
    align-items: stretch;
  }
  .left-panel {
    display: none;
  }
  .right-panel {
    padding: 18px;
    min-height: 100vh;
  }
  .form-card {
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
    border: 1px solid #f1f5f9;
  }
}
