/* General Layout */
body.auth-body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: url('images/background.jpg') no-repeat center/cover;
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; margin: 0;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.95);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-align: center;
}

.auth-logo {
  width: 120px; height: auto; margin-bottom: 20px;
}

.auth-title {
  font-size: 24px;
  color: #0f305a;
  margin-bottom: 25px;
}

.auth-subtext {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.input-group {
  text-align: left;
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f305a;
  margin-bottom: 6px;
}

.input-group i {
  margin-right: 6px;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #444;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Password eye */
.password-wrapper {
  position: relative;
}
.password-wrapper .toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #0f305a;
}

.forgot-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #0f305a;
  font-weight: bold;
  text-decoration: none;
}

.auth-btn {
  width: 100%;
  background: #0f305a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}
.auth-btn:hover { background: #184d8d; }

.alt-link {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}
.alt-link a {
  color: #0f305a;
  font-weight: bold;
  text-decoration: none;
}
.alt-link a:hover { text-decoration: underline; }

/* Mobile tweaks */
@media(max-width:480px){
  .auth-card{ margin: 20px; padding: 25px; }
  .auth-title{ font-size: 20px; }
}
/* --- Modal Styling --- */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.modal.hidden { display: none; }
.modal-content {
  background: #fff;
  max-width: 400px;
  width: 90%;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h3 {
  margin-top: 0;
}
.modal-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #4caf50;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.modal-button:hover {
  background: #43a047;
}
.modal-error .modal-button { background: #e53935; }
.modal-error .modal-button:hover { background: #d32f2f; }
