* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #f6f7fb;
}

.email-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.email-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}

.email-modal {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 460px;
  background: #ffffff;
  border-radius: 28px;
  padding: 34px 28px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.email-modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #0f172a;
  font-size: 30px;
  font-weight: 900;
}

.email-modal-icon.success {
  background: #dcfce7;
  color: #166534;
}

.email-modal-icon.error {
  background: #fee2e2;
  color: #991b1b;
}

.email-modal h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.email-modal p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}

.email-modal .lead {
  margin-bottom: 24px;
}

.email-address {
  display: inline-block;
  color: #111827;
  font-weight: 800;
}

.email-alert {
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.email-alert.success {
  background: #dcfce7;
  color: #166534;
}

.email-form {
  margin-top: 22px;
  text-align: left;
}

.email-form label {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.email-form input[type="email"],
.email-form input[type="password"] {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 16px;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 18px;
}

.email-form input[type="email"]:focus,
.email-form input[type="password"]:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.email-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.email-button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 18px;
  padding: 16px 20px;
  background: #0f172a;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.email-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

.email-button:active {
  transform: scale(0.99);
}

.email-link {
  display: inline-flex;
  justify-content: center;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
  font-size: 16px;
}

.email-link:hover {
  text-decoration: underline;
}

.email-small {
  margin-top: 16px;
  font-size: 14px !important;
  color: #9ca3af !important;
}

@media (max-width: 768px) {
  .email-page {
    padding: 18px;
  }

  .email-modal {
    padding: 28px 18px 22px;
    border-radius: 24px;
  }

  .email-modal h1 {
    font-size: 32px;
  }

  .email-modal p {
    font-size: 15px;
  }

  .email-form input[type="email"],
.email-form input[type="password"] {
    font-size: 16px;
    padding: 14px 16px;
  }

  .email-button {
    font-size: 16px;
    padding: 15px 18px;
  }
}
