/* lrf-style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Vazir';
  src: url('/contents/font/Vazir-Black.woff2') format('woff2');
  font-display: swap;
}

body {
  font-family: 'Vazir', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(145deg, #f2efe6 0%, #e7dfd1 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.logo-container {
  text-align: center;
  margin-bottom: 1.8rem;
}

.logo-img {
  max-width: 180px;
  width: 80%;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 12px 25px -10px rgba(0,0,0,0.1);
  background: #fff3e4;
  padding: 0.6rem 1rem;
  transition: transform 0.2s ease;
}
.logo-img:hover {
  transform: scale(1.02);
}

.card {
  background: rgba(255, 255, 245, 0.96);
  backdrop-filter: blur(2px);
  border-radius: 2rem;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0,0,0,0.05);
  padding: 2rem 1.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 115, 0.3);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #3f2e1e;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #b57c48, #7f5a30);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.card-header p {
  color: #7f6b4a;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: #fef9ef;
  border: 1px solid #e9dccc;
  border-radius: 1rem;
  margin-bottom: 1.3rem;
  padding: 0.2rem 0.8rem;
  transition: all 0.2s;
  position: relative;
}
.input-group:focus-within {
  border-color: #c7a252;
  box-shadow: 0 0 0 3px rgba(199, 162, 82, 0.2);
  background: #fffcf5;
}
.input-icon {
  display: inline-flex;
  align-items: center;
  color: #b28b5e;
  margin-left: 0.5rem;
}
.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-family: 'Vazir', sans-serif;
  color: #2c221a;
  outline: none;
  text-align: right; /* راست‌چین برای همه ورودی‌ها */
}
.input-group input::placeholder {
  color: #bbaa8a;
  font-weight: 400;
  text-align: right;
}
/* حذف استایل اضافی برای شماره تلفن */
.phone-input {
  text-align: right;
  direction: rtl;
}
/* محدودیت عددی در مرورگرهای مدرن */
.phone-input::-webkit-inner-spin-button,
.phone-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.phone-input {
  -moz-appearance: textfield;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.8rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #5d4a33;
  cursor: pointer;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: #c7a252;
}
.link-btn {
  background: none;
  border: none;
  color: #bd8a4a;
  font-family: 'Vazir', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.link-btn:hover {
  color: #8b5a2e;
  text-decoration: underline;
  transform: translateX(-2px);
}

.btn-primary {
  background: linear-gradient(100deg, #c7a252, #b3803c);
  border: none;
  border-radius: 1rem;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-family: 'Vazir', sans-serif;
  font-weight: bold;
  color: white;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 12px rgba(160, 110, 40, 0.2);
  margin-top: 0.6rem;
}
.btn-primary:hover {
  background: linear-gradient(100deg, #b68a42, #a26e32);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -10px rgba(139, 89, 25, 0.4);
}
.btn-primary:active {
  transform: translateY(1px);
}

.card-footer {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #f0e5d6;
  padding-top: 1.5rem;
}
.card-footer p {
  color: #6b543a;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e2b;
  color: #fdf8ec;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  background-color: rgba(44, 62, 43, 0.9);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: 0.2s;
  white-space: nowrap;
  font-weight: 500;
}
.toast:not(.hidden) {
  display: block;
  animation: fadeUp 0.2s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== ریسپانسیو ========== */
@media (max-width: 550px) {
  body {
    padding: 1rem;
  }
  .auth-wrapper {
    max-width: 100%;
  }
  .card {
    padding: 1.2rem;
  }
  .card-header h2 {
    font-size: 1.5rem;
  }
  .card-header p {
    font-size: 0.85rem;
  }
  .input-group {
    padding: 0.1rem 0.6rem;
    margin-bottom: 1rem;
  }
  .input-group input {
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }
  .input-icon svg {
    width: 18px;
    height: 18px;
  }
  .form-options {
    font-size: 0.75rem;
    margin: 0.5rem 0 1.2rem;
  }
  .btn-primary {
    padding: 0.7rem;
    font-size: 1rem;
  }
  .card-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
  }
  .toast {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    white-space: normal;
    max-width: 85vw;
  }
}
@media (max-width: 420px) {
  .card {
    padding: 1rem;
  }
  .card-header h2 {
    font-size: 1.3rem;
  }
  .logo-img {
    max-width: 140px;
  }
}