body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(180deg, #1B4966 0%, #2B5F80 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.login-card {
  background-color: white;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-container {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 98px;
  height: 98px;
}

.page-title {
  font-size: 48px;
  font-weight: 600;
  color: #1B4966;
  margin: 0 0 32px 0;
  text-align: center;
}

.sign-in-prompt {
  color: #333;
  font-size: 16px;
  text-align: center;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.divider {
  width: 100%;
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

.divider span {
  position: relative;
  background: white;
  padding: 0 16px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.email-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-label {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
  color: #333;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.email-input::placeholder {
  color: #999;
}

.email-input:focus {
  outline: none;
  border-color: #1B4966;
  box-shadow: 0 0 0 3px rgba(27, 73, 102, 0.1);
}

.validation-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.btn-email {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: #C7FF28;
  color: #1B4966;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
}

.btn-email:hover {
  background-color: #B8EF19;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-email:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-message {
  color: #1B4966;
  font-size: 14px;
  text-align: center;
  padding: 8px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background-color: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #3c4043;
  transform: translateY(-1px);
}

.btn-google:active {
  background-color: #e8eaed;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 0;
  padding-bottom: 0;
}

.logged-out-page iframe,
.login-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}

.verify-email-page {
  background: #1B4966;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.verify-email-content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.envelope-container {
  margin-bottom: 40px;
}

.envelope-circle {
  width: 240px;
  height: 240px;
}

.verify-title {
  font-size: 48px;
  font-weight: 600;
  color: white;
  margin: 0 0 32px 0;
}

.verify-text {
  color: white;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.verify-text p {
  margin: 0 0 8px 0;
}

.verify-email {
  font-weight: 700;
  font-size: 20px;
  margin-top: 16px !important;
}

.resend-message {
  background-color: rgba(199, 255, 40, 0.2);
  border: 1px solid #C7FF28;
  color: #C7FF28;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 16px;
}

.change-email {
  color: white;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 40px;
  display: inline-block;
}

.change-email .underline {
  text-decoration: underline;
}

.change-email:hover {
  opacity: 0.8;
}

.resend-form {
  width: 100%;
  max-width: 540px;
  margin-bottom: 32px;
}

.btn-resend-white {
  width: 100%;
  padding: 16px 24px;
  background-color: white;
  color: #1B4966;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-resend-white:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-resend-white:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.help-text {
  color: white;
  font-size: 16px;
}

.help-text .contact-link {
  color: white;
  text-decoration: underline;
}

.help-text .contact-link:hover {
  opacity: 0.8;
}

.passkey-page {
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.passkey-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-verified-banner {
  background-color: #1B4966;
  color: #C7FF28;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.email-verified-banner svg {
  flex-shrink: 0;
}

.email-verified-banner span {
  flex: 1;
}

.close-banner {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-banner:hover {
  opacity: 0.8;
}

.passkey-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.passkey-icon-container {
  margin-bottom: 32px;
}

.passkey-title {
  font-size: 36px;
  font-weight: 600;
  color: #1B4966;
  margin: 0 0 16px 0;
  text-align: center;
}

.passkey-description {
  font-size: 18px;
  color: #333;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.passkey-name-input {
  margin-bottom: 32px;
}

.passkey-name-input label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.passkey-name-input input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.passkey-name-input input:focus {
  outline: none;
  border-color: #1B4966;
}

.passkey-benefits {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  color: #333;
}

.benefit-item svg {
  flex-shrink: 0;
}

.passkey-actions {
  width: 100%;
  display: flex;
  gap: 16px;
}

.btn-skip {
  flex: 1;
  padding: 16px 24px;
  background-color: white;
  color: #1B4966;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.btn-create-passkey {
  flex: 1;
  padding: 16px 24px;
  background-color: #C7FF28;
  color: #1B4966;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-create-passkey:hover {
  background-color: #B8EF19;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-create-passkey:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden-form {
  display: none;
}

.hidden {
  display: none;
}

.passkey-device-choice {
  width: 100%;
  margin-top: 32px;
}

.device-choice-title {
  font-size: 24px;
  font-weight: 600;
  color: #1B4966;
  text-align: center;
  margin: 0 0 32px 0;
}

.device-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.device-option-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-option-btn:hover {
  border-color: #1B4966;
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.device-option-btn svg {
  flex-shrink: 0;
}

.device-option-title {
  font-size: 18px;
  font-weight: 600;
  color: #1B4966;
  text-align: center;
}

.device-option-desc {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.btn-back {
  width: 100%;
  padding: 14px 24px;
  background-color: white;
  color: #1B4966;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.magic-link-landing-page {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.landing-content {
  background-color: white;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.app-icon-container,
.phone-icon-container,
.coming-soon-icon-container {
  margin-bottom: 24px;
}

.app-logo {
  border-radius: 24px;
}

.landing-title {
  font-size: 28px;
  font-weight: 600;
  color: #1B4966;
  margin: 0 0 16px 0;
}

.landing-text {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.talent-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: #C7FF28;
  color: #1B4966;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.talent-btn-primary:hover {
  background-color: #B8EF19;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.app-store-fallback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.fallback-text {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
}

.ios-btn {
  background-color: #000;
  color: white;
}

.ios-btn:hover {
  background-color: #333;
  color: #fff;
}

.android-btn {
  background-color: #9CA3AF;
  color: #fff;
}

.android-btn:hover {
  background-color: #6B7280;
  color: #fff;
}

.continue-form {
  margin-top: 24px;
}

.btn-link {
  background: none;
  border: none;
  color: #1B4966;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}

.btn-link:hover {
  color: #143a50;
}

.email-info {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.email-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.email-address {
  font-weight: 600;
  color: #1B4966;
  font-size: 16px !important;
  margin-top: 8px !important;
}

.error-container {
  padding: 20px;
}

.landing-text-secondary {
  color: #999;
  font-size: 14px;
  margin: 16px 0;
}

.invitation-info {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.invitation-expiry {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.qr-code-section {
  margin: 24px 0;
  text-align: center;
}

.qr-code-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.qr-code-container {
  display: inline-block;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-container svg {
  display: block;
}

.divider-text {
  width: 100%;
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

.divider-text span {
  position: relative;
  background: white;
  padding: 0 16px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 480px) {
  .landing-content {
    padding: 32px 24px;
  }

  .landing-title {
    font-size: 24px;
  }

  .store-buttons {
    width: 100%;
  }

  .store-btn {
    width: 100%;
    text-align: center;
  }
}
