* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b1014;
  color: #f5f5f5;
  min-height: 100vh;
}

.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top Navigation Header --- */
.top-bar {
  height: 60px;
  padding: 0 24px;
  background-color: #0b1014;
  border-bottom: 1px solid #262b30;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f5f5f5;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.header-login-btn {
  padding: 7px 18px;
  background-color: #0064e0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.header-login-btn:hover {
  background-color: #0056c2;
}

/* --- Main Error Container --- */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.error-card {
  width: 100%;
  max-width: 440px;
  background-color: #152127;
  border: 1px solid #262b30;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.error-icon-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background-color: #1c2a33;
  border: 2px solid #374650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.error-subtitle {
  font-size: 14px;
  color: #9aa7b1;
  line-height: 1.5;
  margin-bottom: 28px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background-color: #0064e0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-back:hover {
  background-color: #0056c2;
}

/* --- Footer --- */
.site-footer {
  background-color: #0b1014;
  border-top: 1px solid #262b30;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 12px;
  color: #7d8992;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #7d8992;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Mobile View --- */
@media (max-width: 600px) {
  .top-bar {
    padding: 0 16px;
  }

  .error-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 24px 12px;
  }
}
