/* ===== إعدادات عامة ===== */
:root {
  --primary-blue: #002b5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #e8f0ff, #f5f5f5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  direction: rtl;
  padding: 20px;
}

/* ===== اللوجو ===== */
.top-left-logo {
  margin-bottom: 30px;
  text-align: center;
}

.top-left-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* ===== الكارت ===== */
.auth-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 400px;
  transition: 0.3s;
}

.auth-card:hover {
  transform: translateY(-3px);
}

/* ===== العنوان ===== */
.auth-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #222;
  font-size: 28px;
}

/* ===== الفورم ===== */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #444;
}

input {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #d0d0d0;
  font-size: 15px;
  transition: 0.3s;
  background: #fafafa;
}

input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 43, 92, 0.15);
  background: #fff;
}

/* ===== الزر ===== */
button {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-blue);
  color: white;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

button:disabled {
  background: #9E9E9E;
  cursor: not-allowed;
}

/* ===== الرسائل ===== */
.message {
  margin-top: 15px;
  text-align: center;
  display: none;
  font-weight: bold;
  font-size: 14px;
}

.message.success {
  color: #2e7d32;
}

.message.error {
  color: #d32f2f;
}

/* ===== لينك التسجيل ===== */
.auth-card p {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #666;
}

.auth-card a {
  color: #1976d2;
  text-decoration: none;
  font-weight: bold;
}

.auth-card a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  .top-left-logo img {
    max-width: 220px;
  }

  .auth-card {
    padding: 25px 20px;
  }

  .auth-card h2 {
    font-size: 24px;
  }
}