/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

/* Background with subtle texture */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background-color: #0f172a;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0),
    radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Shared card style for login and create-account pages */
.login-card,
.create-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  padding: 40px 32px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.1);
}

/* Logo */
.logo {
  display: block;
  max-width: 220px;
  margin: 0 auto 24px auto;
}

/* Headings */
.card-title {
  color: #e5e7eb;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subtitle {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Forms */
.login-form,
.create-form {
  margin-top: 8px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background-color: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 0.95rem;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

/* Buttons */
.sign-in-button,
.create-account-button {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.sign-in-button:hover,
.create-account-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.6);
}

.sign-in-button:active,
.create-account-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* Links */
.create-account-link,
.back-to-login-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.85;
}

.create-account-link:hover,
.back-to-login-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Pending approval message placeholder */
.pending-message {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #fbbf24;
  text-align: center;
}