@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb_Light.woff2") format("woff2"),
    url("../fonts/IRANSansWeb_Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb.woff2") format("woff2"),
    url("../fonts/IRANSansWeb.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb_Medium.woff2") format("woff2"),
    url("../fonts/IRANSansWeb_Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "IRANSans";
  src:
    url("../fonts/IRANSansWeb_Bold.woff2") format("woff2"),
    url("../fonts/IRANSansWeb_Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
:root {
  --bg-deep: #420f30;
  --glass-card: rgba(66, 15, 48, 0.45);
  --glass-input: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 235, 184, 0.25);
  --glass-border-focus: #ffebb8;
  --text-title: #ffebb8;
  --text-body: #ffffff;
  --text-placeholder: rgba(255, 235, 184, 0.5);
  --btn-glow: #bd5579;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "IRANSans", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(30, 5, 20, 0.45), rgba(30, 5, 20, 0.65)),
    url(../img/bgsabtnam.webp) no-repeat center center / cover;
  background-attachment: fixed;
  color: var(--text-body);
}
body.login-page {
  background:
    linear-gradient(rgba(30, 5, 20, 0.35), rgba(30, 5, 20, 0.55)),
    url(../img/bgvorood.webp) no-repeat center center / cover;
  background-attachment: fixed;
}
.container {
  width: 100%;
  max-width: 460px;
  background: var(--glass-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
h1 {
  color: var(--text-title);
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.meta {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-body);
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
}
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formitem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
label {
  font-size: 0.85rem;
  color: var(--text-title);
  font-weight: 400;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--glass-input);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--glass-border-focus);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 10px rgba(255, 235, 184, 0.3);
}
textarea {
  resize: vertical;
  min-height: 75px;
}
select {
  cursor: pointer;
}
select option {
  background: var(--bg-deep);
  color: var(--text-body);
}
.select {
  display: flex;
  gap: 12px;
}
.select .formitem {
  flex: 1;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: -2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input[type="checkbox"] {
  accent-color: var(--btn-glow);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.check label {
  font-size: 0.8rem;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}
.forgot-link {
  color: var(--text-title);
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.forgot-link:hover {
  opacity: 1;
  text-decoration: underline;
}
button[type="submit"] {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--btn-glow), #8b2b52);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(189, 85, 121, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 85, 121, 0.55);
}
button[type="submit"]:active {
  transform: translateY(0);
}
.switch-form {
  text-align: center;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-body);
}
.switch-form a {
  color: var(--text-title);
  text-decoration: none;
  font-weight: 700;
  margin-right: 5px;
}
.switch-form a:hover {
  text-decoration: underline;
}
