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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Page container */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fff9f9;
}

/* Header styles */
.main-header {
  display: flex;
  padding: 10px 64px;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.14);
}

.logo-container {
  display: flex;
  padding: 10px 0;
  max-width: 181px;
  align-items: center;
}

.logo {
  width: 100%;
  max-width: 181px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-left: 20px;
  min-width: 20px;
  overflow: hidden;
  align-self: stretch;
}

/* Title section */
.title-section {
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.title-container {
  display: flex;
  max-width: 1000px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.page-title {
  color: #1e1e1e;
  font-size: 48px;
  font-weight: 600;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #ccced1;
}

/* Main content */
.main-content {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  width: 100%;
  flex-wrap: wrap;
}

/* Login card */
.login-card {
  display: flex;
  min-width: 380px;
  max-width: 480px;
  flex: 1;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid #ccced1;
  background-color: #fff;
}

.login-content {
  display: flex;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-badge {
  color: #96171a;
  font-size: 14px;
  font-weight: 600;
}

.login-title {
  color: #343a3f;
  font-size: 22px;
  font-weight: 600;
}

.login-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-text {
  color: #1e1e1e;
  font-size: 16px;
  line-height: 145%;
}

.login-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-description {
  margin-bottom: 8px;
}

.alternative-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alternative-title {
  color: #343a3f;
  font-size: 22px;
  font-weight: 600;
}

.alternative-description {
  color: #1e1e1e;
  font-size: 16px;
  line-height: 145%;
}

/* Help footer */
.help-footer {
  display: flex;
  padding: 12px 36px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e1e1e1;
  text-decoration: none;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: center;
}

.help-footer:hover,
.help-footer:active {
  background-color: #f5f5f5;
}

.help-text {
  color: #697077;
  font-size: 14px;
  text-decoration: underline;
  white-space: nowrap;
}

.external-link-icon {
  width: 16px;
  height: 16px;
}

/* Form card */
.form-card {
  display: flex;
  height: 552px;
  min-width: 300px;
  max-width: 480px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
  background-color: #fff;
}

/* Footer */
.site-footer {
  display: flex;
  padding-bottom: 16px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background-color: #ccced1;
}

.footer-content {
  display: flex;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  color: #343a3f;
  font-size: 14px;
  text-decoration: underline;
}

address.contact-info {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 4px 0;
  font-style: normal;
}

.contact-info dl {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
}

.contact-info dt {
  font-weight: normal;
  color: #343a3f;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.contact-info dd {
  margin: 0;
}

.contact-info .contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.service-label {
  color: #343a3f;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}



.contact-label {
  color: #343a3f;
  font-size: 14px;
  white-space: nowrap;
}

.contact-value {
  color: #343a3f;
  font-size: 14px;
  text-decoration: underline;
  white-space: nowrap;
}

.extension {
  color: #343a3f;
  font-size: 14px;
}

/* Media queries */
@media (max-width: 991px) {
  .main-header {
    padding: 10px 32px;
  }

  .page-title {
    font-size: 40px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .main-header {
    padding: 10px 16px;
  }

  .page-title {
    font-size: 32px;
  }

  .main-content {
    padding-left: 16px;
    padding-right: 16px;
    flex-direction: column;
  }

  .login-card {
    width: 100%;
    margin-right: -1px;
    min-width: 300px;
  }

  .login-content {
    margin-left: 16px;
    margin-right: 16px;
    padding: 16px;
  }

  .form-card {
    width: 100%;
    min-width: 300px;
    max-width: 100%;
    height: auto;
    min-height: 300px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .contact-info {
    width: 100%;
    padding: 4px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info dl {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .contact-info dt {
    margin-bottom: 4px;
  }

  .contact-info .contact-label {
    min-width: 65px;
  }

  .contact-info dd {
    margin: 0;
  }

  /* Improve touch targets for mobile */
  .footer-link,
  .contact-value,
  .help-footer {
    padding: 8px 0;
    display: inline-block;
  }

  /* Better spacing for mobile */
  .login-subtitle {
    margin-top: 16px;
  }

  /* Adjust logo size for very small screens */
  @media (max-width: 360px) {
    .logo {
      max-width: 120px;
    }

    .page-title {
      font-size: 28px;
    }
  }
}
