* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #1a5a4d 0%, #2d7a68 100%);
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #15614f;
  box-shadow: 0 4px 15px rgba(20, 90, 77, 0.25);
  padding: 0 40px;
}

header .logo-img img {
  height: 55px;
  transition: transform 0.3s ease;
}

header .logo-img img:hover {
  transform: scale(1.05);
}

header .register {
  display: flex;
  gap: 16px;
}

header .register a {
  background-color: #ffffff;
  padding: 10px 22px;
  color: #1a5a4d;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  display: inline-block;
}

header .register .login {
  background: #ffffff;
  color: #1a5a4d;
}

header .register .login:hover {
  background-color: #e6f5f1;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 90, 77, 0.3);
}

header .register .signup {
  background: linear-gradient(135deg, #f7a21b 0%, #fdb541 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(247, 162, 27, 0.45);
}

header .register .signup:hover {
  background: linear-gradient(135deg, #e69310 0%, #f7a21b 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(247, 162, 27, 0.55);
}

/* ===== MAIN ===== */
main {
  background: linear-gradient(180deg, #6fb5a8 0%, #88c9bd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 60px 20px;
}

main .card-container {
  border: 5px solid #15614f;
  border-radius: 20px;
  background: linear-gradient(145deg, #7de8d6 0%, #6dd9c7 100%);
  padding: 50px;
  max-width: 600px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(21, 97, 79, 0.25);
}

main .card-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(21, 97, 79, 0.35);
  border-color: #1a5a4d;
}

main .card h2 {
  color: #1a5a4d;
  margin: 0 0 15px;
  font-size: 28px;
}

main .card p {
  color: #15614f;
  font-size: 16px;
  margin-bottom: 25px;
}

main input[type="file"] {
  border-radius: 12px;
  padding: 18px; /* ✅ تقليل البادينغ شوي */
  background: linear-gradient(145deg, #e0f7f4 0%, #d5f2ee 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: #1a5a4d;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(21, 97, 79, 0.1);
  width: 100%;
  margin-bottom: 20px;
}

main input[type="file"]:hover {
  background: linear-gradient(145deg, #d0f0eb 0%, #c5ebe6 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(21, 97, 79, 0.25);
}

main input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #f7a21b 0%, #fdb541 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  margin-right: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(247, 162, 27, 0.35);
}

main input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #e69310 0%, #f7a21b 100%);
  transform: translateY(-2px) scale(1.05);
}

main input[type="submit"] {
  background: linear-gradient(135deg, #1a5a4d 0%, #2d7a68 100%);
  color: #ffffff;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(26, 90, 77, 0.35);
  width: 100%;
  margin-top: 10px; /* ✅ تباعد بسيط */
}

main input[type="submit"]:hover {
  background: linear-gradient(135deg, #15614f 0%, #1a5a4d 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 90, 77, 0.45);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #1a5a4d 0%, #2d7a68 100%);
  color: #ffffff;
  text-align: center;
  border-top: 3px solid #15614f;
  padding: 18px 0; /* ✅ توازن */
  box-shadow: 0 -4px 15px rgba(20, 90, 77, 0.25);
  font-size: 14px;
}

footer p {
  margin: 5px 0;
}
