/* ===== سامانه نمایش نتایج کنکور — استایل صفحه ورود ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1180px; }

/* ---------- جعبه توضیحات ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #e3f4ee;
  border: 1px solid #a8ddd0;
  color: #2e7d6e;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.notice svg { flex-shrink: 0; margin-top: 6px; }

/* ---------- کارت اصلی ---------- */
.card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(20, 40, 70, 0.10);
  overflow: hidden;
  min-height: 580px;
}

/* ---------- پنل برند (سمت راست) ---------- */
.brand-panel {
  flex: 0 0 37%;
  position: relative;
  background: linear-gradient(160deg, #1e3a5f 0%, #25496f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
}
/* الگوی لوزی پس‌زمینه */
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 24px);
}
.brand-panel::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.06);
  top: -120px;
  left: -120px;
}
.brand-panel .logo,
.brand-panel h1 { position: relative; z-index: 1; }
.brand-panel h1 {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.8;
}

/* ---------- پنل فرم (سمت چپ) ---------- */
.form-panel {
  flex: 1;
  padding: 40px 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-panel h2 {
  color: #1f3a5f;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ---------- پیام‌ها ---------- */
.msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.msg.error   { background: #fdecea; border: 1px solid #f2c4c0; color: #b3261e; }
.msg.success { background: #e6f4ea; border: 1px solid #b7dfc3; color: #1e7e34; }
.msg.info    { background: #e8f1fb; border: 1px solid #bcd4f0; color: #1a5fa8; }

/* ---------- گرید فرم ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.field label {
  display: block;
  font-size: 13.5px;
  color: #454545;
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: #1f3a5f;
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
.field input.invalid,
.field select.invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.08);
}
.ltr-input { direction: ltr; text-align: left; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 34px;
}

/* ---------- رمز عبور ---------- */
.password-wrap { position: relative; }
.password-wrap input { padding-left: 40px; }
.toggle-password {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  padding: 4px;
  border-radius: 4px;
}
.toggle-password:hover { color: #1f3a5f; }

/* ---------- کپچا ---------- */
.captcha-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
#captcha-canvas {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  display: block;
}
.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 4px;
  border-radius: 6px;
}
.captcha-refresh:hover { background: #e9f7ec; }
.captcha-refresh svg { transition: transform 0.4s; }
.captcha-refresh:hover svg { transform: rotate(120deg); }

/* ---------- دکمه‌ها ---------- */
.buttons {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn {
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 44px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: #1f3a5f;
  color: #fff;
  border: 1px solid #1f3a5f;
}
.btn-primary:hover { background: #2a4d78; }
.btn-outline {
  background: #fff;
  color: #444;
  border: 1px solid #c9ccd1;
}
.btn-outline:hover { background: #f5f6f8; }

/* ---------- لینک‌های کمکی ---------- */
.help-links {
  list-style: none;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #e2e5e9;
  font-size: 13px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-links a {
  color: #1f5fa8;
  text-decoration: none;
  font-weight: 600;
}
.help-links a:hover { text-decoration: underline; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 920px) {
  .card { flex-direction: column; min-height: unset; }
  .brand-panel { flex: none; padding: 28px; gap: 16px; }
  .brand-panel h1 { font-size: 17px; }
  .brand-panel .logo img { width: 90px; height: 90px; }
  .form-panel { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-spacer { display: none; }
  .captcha-wrap { align-items: center; }
}
