
  @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --primary: #5b42df;
  --primary-dark: #4b35c6;
  --text: #27384c;
  --muted: #6d8195;
  --border: #dce5ec;
  --error: #d9415d;
  --success: #238b57;
  --card: rgba(255,255,255,.91);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 184, 190, .13), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(91, 66, 223, .12), transparent 35%),
    linear-gradient(135deg, #edf7f8 0%, #f5f7fb 48%, #e8f1f5 100%);
  display: grid;
  place-items: center;
  padding: 30px 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .18;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-card {
  width: min(100%, 500px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(35, 58, 76, .13);
  padding: 30px 42px 36px;
  backdrop-filter: blur(10px);
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  position: relative;
}

.brand-logo::before,
.brand-logo::after,
.brand-logo span {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #22a447;
  border-radius: 42% 58% 45% 55%;
  transform: rotate(45deg);
}

.brand-logo::after {
  inset: 14px;
  transform: rotate(-45deg);
}

.brand-logo span:nth-child(1) { transform: rotate(0deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(2) { transform: rotate(45deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(3) { transform: rotate(90deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(4) { transform: rotate(135deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(5) { transform: rotate(180deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(6) { transform: rotate(225deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(7) { transform: rotate(270deg) translateY(-18px) scale(.42); }
.brand-logo span:nth-child(8) { transform: rotate(315deg) translateY(-18px) scale(.42); }

.brand h1 {
  font-size: 23px;
  margin: 0 0 5px;
  font-weight: 700;
}

.brand p {
  color: #58748b;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.field {
  margin-bottom: 20px;
  position: relative;
}

.field > label {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  margin: 0 5px 8px;
  color: #354a5f;
}

.input-wrap {
  position: relative;
}

.input-wrap > svg {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #8194a6;
  stroke-width: 1.7;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.62);
  outline: none;
  padding: 0 47px 0 45px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: .2s ease;
  direction: rtl;
}

.input-wrap input::placeholder {
  color: #7c8d9e;
}

.input-wrap input:focus {
  border-color: rgba(91,66,223,.62);
  box-shadow: 0 0 0 3px rgba(91,66,223,.08);
  background: #fff;
}

.input-wrap input:user-invalid {
  border-color: rgba(217,65,93,.65);
}

.password-toggle {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8798a8;
  cursor: pointer;
  font-size: 14px;
}

.error {
  display: block;
  min-height: 18px;
  color: var(--error);
  font-size: 11px;
  padding: 4px 5px 0;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.62);
  color: #73879a;
  padding: 0 15px;
  font: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: .2s ease;
}

.dropdown-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8395a5;
  stroke-width: 1.8;
  transition: transform .2s ease;
}

.dropdown.open .dropdown-toggle {
  border-color: rgba(91,66,223,.62);
  box-shadow: 0 0 0 3px rgba(91,66,223,.08);
  background: #fff;
}

.dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 20;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  padding: 6px;
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 11px;
  box-shadow: 0 16px 35px rgba(30, 52, 70, .14);
}

.dropdown.open .dropdown-menu {
  display: block;
  animation: menuIn .16s ease-out;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #42586b;
  padding: 11px 12px;
  text-align: right;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.dropdown-menu button:hover,
.dropdown-menu button[aria-selected="true"] {
  background: #f1efff;
  color: var(--primary-dark);
}

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 3px 19px;
  font-size: 11px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #607589;
  cursor: pointer;
}

.remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 17px;
  height: 17px;
  border: 1px solid #a9b7c4;
  border-radius: 4px;
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.remember input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.remember input:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 11px;
  line-height: 1;
}

.forgot {
  border: 0;
  padding: 0;
  background: transparent;
  color: #5874a0;
  cursor: pointer;
  font: inherit;
}

.forgot:hover {
  color: var(--primary);
}

.login-btn {
  width: 100%;
  height: 51px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2c13b8, #7f6aec);
  box-shadow: 5px 5px 20px #302474;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(91,66,223,.23);
  transition: .2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(91,66,223,.28);
}

.login-btn:active {
  transform: translateY(0);
}

.success {
  min-height: 22px;
  text-align: center;
  color: var(--success);
  font-size: 12px;
  margin-top: 11px;
}

@media (max-width: 560px) {
  body {
    padding: 15px;
  }

  .login-card {
    padding: 25px 20px 28px;
    border-radius: 13px;
  }

  .brand h1 {
    font-size: 21px;
  }
}

