/* ============== LOGIN PAGE ============== */
.login-page {
  background: var(--bg-soft);
  min-height: 100vh;
  margin: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

/* ===== Aside (right in RTL = brand panel) ===== */
.login-aside {
  background:
    radial-gradient(ellipse at top right, rgba(245,158,11,0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(99,102,241,0.25), transparent 50%),
    linear-gradient(135deg, #1e3a8a, #2563eb 60%, #4338ca);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand-light .brand-mark {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  color: #fff;
}
.brand-light .brand-name { color: #fff; }

.aside-content { max-width: 480px; }
.login-aside h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.login-aside p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.aside-bullets {
  list-style: none;
  padding: 0;
}
.aside-bullets li {
  padding: 10px 0;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.aside-bullets li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.aside-footer { color: rgba(255,255,255,0.55); }

/* ===== Main login card ===== */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.login-card h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.login-sub {
  color: var(--text-soft);
  margin-bottom: 28px;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ===== Form fields ===== */
.login-form .field { margin-bottom: 18px; }

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.forgot-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.password-input { position: relative; }
.password-toggle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0.6;
}
.password-toggle:hover { opacity: 1; background: var(--bg-soft); }

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 18px 0 24px;
  cursor: pointer;
}
.remember input { cursor: pointer; }

.btn-block { width: 100%; }

.login-footer-text {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-soft);
}
.login-footer-text a {
  color: var(--primary);
  font-weight: 600;
}
.login-footer-text a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { padding: 32px 28px; min-height: auto; }
  .login-aside h2 { font-size: 1.6rem; }
  .login-aside .aside-bullets { display: none; }
  .login-aside .aside-footer { display: none; }
}
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
}
