:root {
  --primary: #0071e3;
  --text: #1d1d1f;
  --bg: #f9f9f9;
  --accent: #333;
  --button-bg: #0071e3;
  --button-hover: #005ecb;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  height: 7rem;
}

.logo img {
  height: 100%;
}

header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.btn-container button {
  background-color: var(--button-bg);
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-container button:hover {
  background-color: var(--button-hover);
  transform: translateY(-3px);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: #888;
  background: #fff;
  border-top: 1px solid #eaeaea;
}

footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.05rem;
  }

  .btn-container button {
    flex: 1 1 100%;
  }
}

/* Popup Overlay Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: brightness(60%);
}

/* Hide popup when not active (if needed) */
.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Form box container */
.form-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  font-family: "SF Pro Display", sans-serif;
  animation: popupFadeIn 0.35s ease forwards;
}

/* Form title */
.form-box h2 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

/* Inputs style */
.form-box input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1.8px solid #d1d1d6;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline-offset: 2px;
}

.form-box input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.4);
}

/* Button style */
.form-box button {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  user-select: none;
}

.form-box button:hover,
.form-box button:focus {
  background: #005bb5;
  outline: none;
  box-shadow: 0 0 12px rgba(0, 91, 181, 0.6);
}

/* Optional subtle entrance animation */
@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.logout button {
  color: white;
  border: none;
  background-color: #e53935;
  padding: 12px 20px;
  cursor: pointer;
  outline: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 30px;
}

.logout button:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}
