/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: #f7f7f7;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */
.header {
  background: #003366;
  color: #fff;
  padding: 1rem;
  position: relative;       /* For centering title */
  display: flex;
  align-items: center;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* Centered title inside header */
.header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  color: #fff;
}

/* Logo alignment */
.header img.logo {
  height: 50px;
  width: auto;
  margin-right: 1rem;
}

/* ===== Login Section ===== */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #f7f7f7;
  min-height: calc(100vh - 120px);
}

.login-form {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Unified Header Style (Login + Modal Create Account) ===== */
.panel-title,
.modal-content h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  background: #003366;  /* blue background */
  color: #fff;          /* white text */
  padding: 0.5rem;
  border-radius: 4px;
}

/* ===== Form Fields ===== */
.login-form label,
.create-account-form label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: bold;
}

.login-form input,
.create-account-form input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== Buttons ===== */
.login-form .btn-primary,
.create-account-form .btn-primary {
  width: 100%;
  background: #003366;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.login-form .btn-primary:hover,
.create-account-form .btn-primary:hover {
  background: #002244;
}

/* Link button */
.link-button {
  background: none;
  border: none;
  color: #003366;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 0;
}

.create-account {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  font-size: 0.85rem;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: zoomIn 0.2s ease-out;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 1;
}

/* Secondary button style */
.btn-secondary {
  background: #ccc;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #bbb;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { background: rgba(0, 0, 0, 0); }
  to { background: rgba(0, 0, 0, 0.5); }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-form,
  .modal-content {
    padding: 1.5rem;
  }
}

