@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f766e 0%, #0369a1 50%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 640px;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARD */
.card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* HEADER */
.title {
  background: linear-gradient(135deg, #0f766e, #0369a1);
  padding: 35px 40px;
  text-align: center;
  color: white;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
}

.title::before {
  content: '🏥';
  display: block;
  font-size: 40px;
  margin-bottom: 10px;
}

.title span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* FORM AREA */
form {
  padding: 35px 40px;
  background: #f9fafb;
}

/* ROW GRID */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* FORM GROUP */
.form-group {
  margin-bottom: 20px;
}

.form-group.col {
  margin-bottom: 0;
}

/* LABEL */
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* INPUT & SELECT */
.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  background: #fff;
}

.form-control:hover {
  border-color: #9ca3af;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

input[type="date"].form-control {
  cursor: pointer;
}

/* DIVIDER */
.section-divider {
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 5px 0 20px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: #e5e7eb;
}
.section-divider::before { left: 0; }
.section-divider::after  { right: 0; }

/* SUBMIT BUTTON */
.btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: white;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* LOADING STATE */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
  body {
    padding: 15px;
    align-items: flex-start;
  }

  .title {
    padding: 28px 25px;
    font-size: 22px;
  }

  form {
    padding: 25px 20px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .row .form-group.col {
    margin-bottom: 18px;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
