
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1F3864 0%, #2E75B6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 44px 40px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.logo { text-align: center; font-size: 40px; margin-bottom: 8px; }
h1 { text-align: center; color: #1F3864; font-size: 22px; margin-bottom: 6px; }
.subtitle { text-align: center; color: #6c757d; font-size: 13px; margin-bottom: 32px; }
label { display: block; font-size: 13px; font-weight: 600; color: #495057; margin-bottom: 6px; }
input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.2s;
  direction: rtl;
}
input:focus { border-color: #2E75B6; box-shadow: 0 0 0 3px rgba(46,117,182,0.15); }
button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1F3864, #2E75B6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
button:hover { opacity: 0.9; }
#authMessage {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;

}

[hidden] { display: none !important; }
.card { max-width: calc(100vw - 32px); margin: 24px 0; }
.password-wrap { position: relative; }
.password-wrap input { padding-left: 58px; }
#togglePassword { position: absolute; left: 8px; top: 10px; padding: 0; margin: 0; width: 44px; background: none; color: #495057; font-size: 12px; }
button:disabled { opacity: .5; cursor: wait; }
#authMessage.success { background: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; }
.auth-links a, .auth-links button { font: 13px Segoe UI, Arial; color: #2e75b6; background: none; width: auto; padding: 0; margin: 0; }
@media(max-width:420px) { .card { padding: 32px 24px; } }
