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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1E88C7 0%, #1565A0 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin: 30px 0;
  text-align: center;
}

.logo img {
  max-width: 180px;
}

/* Card styles */
.card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.card h1 {
  color: #1E88C7;
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Form elements */
.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: #1E88C7;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: #F5A623;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #E09000;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1E88C7;
  background: white;
  border: 2px solid #1E88C7;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #1E88C7;
  color: white;
}

.btn-outline {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  color: #666;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-text {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

.help-text {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-top: 20px;
}

.help-text a {
  color: #1E88C7;
  text-decoration: none;
}

.error {
  background: #ffebee;
  color: #c62828;
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Acknowledgement page */
.acknowledgement {
  max-height: 80vh;
  overflow-y: auto;
}

.acknowledgement .intro {
  font-size: 16px;
  color: #333;
}

.terms {
  margin: 20px 0;
}

.term {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.term:last-child {
  border-bottom: none;
}

.term h3 {
  color: #1E88C7;
  font-size: 16px;
  margin-bottom: 8px;
}

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

.accept-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox-label input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.checkbox-label span {
  font-size: 16px;
  color: #333;
}

.legal-link {
  text-align: center;
  margin-top: 15px;
}

.legal-link a {
  font-size: 12px;
  color: #999;
}

/* Membership Card */
.membership-card {
  background: linear-gradient(135deg, #1E88C7 0%, #1565A0 100%);
  border-radius: 20px;
  padding: 25px;
  width: 100%;
  color: white;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.card-type {
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.card-body {
  padding: 10px 0;
}

.member-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.member-id {
  font-size: 14px;
  opacity: 0.8;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 20px 0;
}

.section-label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.practice-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.practice-address {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.practice-phone {
  color: #F5A623;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4CAF50;
}

.effective-date {
  font-size: 12px;
  opacity: 0.8;
}

.actions {
  width: 100%;
  margin-top: 25px;
}

/* Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 25px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
}

.install-content h3 {
  color: #333;
  margin-bottom: 8px;
}

.install-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.install-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.install-buttons .btn-primary {
  flex: 1;
}
