body {
  background-color: #F2F2F2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 3em auto;
  padding: 3em;
  line-height: 1.5;
}

.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 150px !important;
}

.navigation {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  width: 50%;
}

.navigation a {
  text-decoration: none;
  color: black;
  padding: 10px 20px;
}

.navigation a:hover {
  background-color: #eee;
}

.hamburger-menu {
  display: none;
}

.navigation.active {
  display: flex;
}

.content {
  margin: 0 auto;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 10px #ddd;
}

.form-wrapper input {
  width: 100%;
  height: 25px;
  padding: .5rem;
  margin-bottom: .5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.form-wrapper input:focus {
  outline: none;
  border-color: #0077ff;
}

.input {
  width: 100%;
  height: 25px;
  padding: .5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.submit-button {
  width: 105% !important;
  height: 60px !important;
  padding: 1rem !important;
  margin-top: 1rem;
  background-color: #0054a6;
  color: #fff !important;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  background-color: #004387;
}

.form-wrapper a {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-decoration: underline;
  color: #0077ff;
}

/* Client logo sizing for universal letter */
.client-logo {
  max-width: 300px;
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  object-fit: contain;
}

/* Authentication Styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
  padding: 20px;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1f36;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.auth-form {
  width: 100%;
}

.auth-field {
  margin-bottom: 20px;
  width: 100%;
}

.auth-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-field-half {
  flex: 1;
  margin-bottom: 0;
}

.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1f36;
  margin-bottom: 8px;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1f36;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-submit {
  width: 100%;
  height: 44px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(180deg, #1e3a5f 0%, #172e4a 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

.auth-submit:hover {
  background: linear-gradient(180deg, #172e4a 0%, #0f1f35 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 95, 0.3);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

.auth-error {
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 400;
}

.auth-alert {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #991b1b;
  font-size: 14px;
}

.auth-alert-close {
  background: none;
  border: none;
  color: #991b1b;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.auth-alert-close:hover {
  opacity: 1;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-footer span {
  margin-right: 6px;
}

.auth-footer a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-footer a:hover {
  color: #172e4a;
  text-decoration: underline;
}

@media only screen and (max-width: 768px) {
  /* Mobile view logo sizing */
  .client-logo {
    max-width: 200px;
    max-height: 100px;
  }

  .navigation {
    display: none;
  }

  .csrf {
    visibility: hidden;
    display: none;
  }

  .hamburger-menu {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }

  /* Add styles for the active class */
  .navigation.active {
    display: block;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    width: 200px;
    height: 100%;
    padding: 20px;
    box-shadow: 2px 2px 10px #ccc;
    border-radius: 10px;
  }

  .navigation a {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  .navigation a:hover {
    background-color: #eee;
  }

  .hamburger-menu div {
    width: 30px;
    height: 3px;
    background-color: black;
    margin: 5px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-field-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-field-half {
    margin-bottom: 20px;
  }
}
