@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0d2a52 50%, #1b3d6e 100%);
  color: #111827;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #7ab648, #1b6fc8);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.auth-logo img {
  height: 52px;
  object-fit: contain;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  background: #fafafa;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1b6fc8;
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7ab648 0%, #1b6fc8 100%);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 6px;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 111, 200, 0.35);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}

.auth-links a {
  color: #1b6fc8;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  text-align: center;
}

.auth-msg.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  display: block;
}

.auth-msg.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  display: block;
}

.hidden { display: none !important; }

@media (max-width: 500px) {
  .auth-card { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-title { font-size: 19px; }
}
