/* ============================
   1) Font + global reset
============================ */
@font-face {
  font-family: 'BYekan';
  src: url('/static/fonts/BYekan.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'BYekan';
  src: url('/static/fonts/BYekan-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}



:root {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --bg: #f1f5f9;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --danger: #dc2626;
  --border: #e2e8f0;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'BYekan', 'Iranian Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  letter-spacing: 0;
  height: 100%;
  overflow: hidden;
}



/* Layout */
.container {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}


/* HERO */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  display: flex;
  align-items: center;
  padding: 40px;
  overflow: hidden;
}


.hero-content {
  max-width: 500px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  background: var(--primary);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
}

.hero h1 {
  font-weight:bolder ;
  margin: 0;
  font-size: 22px;
}

.hero p {
  margin: 6px 0 18px;
  color: #cbd5e1;
}

.bullets {
  padding: 0;
  list-style: none;
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}


.hero-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

button,
input,
label {
  font-family: inherit;
}

/* CARD */
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  overflow: hidden;
}


.card-inner {
  font-family: 'BYekan', sans-serif;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}


.card-inner h2 {
  font-weight: 700;
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 0 20px 0;
}

label,
.helper,
.form-group {
  text-align: right;
}

/* Form */
.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Password */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

/* Helper */
.helper {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Button */
.btn {
  font-family: 'BYekan', sans-serif;
  font-size: 17px;
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
}

/* Alert */
.alert {
  background: #fee2e2;
  color: var(--danger);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  margin-top: 30px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
  }

  .hero {
    display: none;
  }

  .card {
    padding: 12px;
  }

  .card-inner {
    padding: 20px 15px;
  }
}

/* Role Selector */
.role-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.role-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f1f5f9;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 14px;
}

.role-btn:hover {
  background: #e2e8f0;
}

.role-btn.active {
  background: #14b8a6;
  color: white;
  border-color: #14b8a6;
}

.form-group.role-selector,
.form-group.role-selector label,
.form-group.role-selector button {
  font-family: 'BYekan', sans-serif !important;
}

.remember-group {
  display: flex;
  justify-content: flex-start; /* in RTL this means right side */
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px; /* space between checkbox and text */
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
