/* Base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #fffbea, #f9e8b4);
  color: #333;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Navbar */
.portal-header .navbar {
  background-color: #1c1c1c;
  color: white;
  display: flex;
  align-items: center;
  padding: 30px 40px; /* made header taller */
  gap: 20px;
  position: relative;
}

/* Back arrow */
.back-arrow {
  color: white;
  font-size: 1.8rem; /* slightly bigger */
  text-decoration: none;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s ease;
  z-index: 10;
}

.back-arrow:hover {
  color: #bfa046;
}

/* Logo inside header */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}

.logo-img {
  width: 50px;
  height: auto;
}

.logo-text {
  font-size: 2rem; /* slightly bigger text */
  font-weight: 700;
  color: white;
}

/* Login container */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* Portal logo container */
.portal-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto; /* center horizontally and margin below */
  width: 80px;
  height: 80px; /* added height to center svg vertically */
}

/* Login card */
.login-card {
  background: #ffffffc2; /* semi-transparent white */
  padding: 40px 35px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  width: 360px;
  text-align: center;
  border: 1px solid #e6d8a4; /* subtle gold border */
  display: flex;
  flex-direction: column;
  align-items: center; /* center everything inside */
}

/* Form styles */
.login-card h2 {
  color: #bfa046;
  margin-bottom: 25px;
  font-weight: 700;
}

.login-card label {
  align-self: flex-start; /* left align labels */
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.login-card input {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 20px;
  border: 1px solid #e6d8a4;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.login-card input:focus {
  border-color: #bfa046;
  box-shadow: 0 0 8px #bfa046a0;
}

/* Login button */
.btn-login {
  background-color: #bfa046;
  color: white;
  font-weight: 700;
  padding: 12px 0;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #a28d37;
}

/* Register link */
.register-link {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #444;
}

.register-link a {
  color: #bfa046;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background-color: #1c1c1c;
  color: white;
  padding: 20px 40px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
  width: 100vw; /* full width */
  box-sizing: border-box;
  position: relative;
  left: 0;
  bottom: 0;
}
