/* New summer-themed background for registration pages */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure canvas creates a stacking context so positioned children stack predictably */
.canvas {
  position: relative;
  z-index: 0;
  background: linear-gradient(180deg, #fffaf0 0%, #fff1cc 30%, #ffe6b8 60%, #eaf9ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  /* gentle textured overlay using radial-gradients */
  background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.55) 0px, rgba(255,255,255,0) 40%), radial-gradient(circle at 90% 80%, rgba(250,240,210,0.25) 0px, rgba(250,240,210,0) 80%), url("../images/bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* Push the decorative wave behind content */
.canvas::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%221200%22 height=%22140%22 viewBox=%220 0 1200 140%22><path fill=%22%23fff3e0%22 d=%22M0 40c150 40 300 0 450 20s300 50 450 10 300-60 300-60v140H0z%22/></svg>') repeat-x, url("../images/bg.png") right bottom/auto 140px no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1; /* send behind stacking context */
}

/* Card styling to lift content from background */
.card {
  position: relative; /* create own stacking context */
  z-index: 10; /* ensure it's above decorative elements */
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(24,24,40,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.6);
}

.card-header {
  background: linear-gradient(90deg, rgba(255,230,140,0.12), rgba(255,200,100,0.06));
}

/* Accent colors */
.btn-primary {
  position: relative;
  z-index: 11;
  background: linear-gradient(90deg,#ff8a00,#ffd54f);
  border: none;
  color: #2b2b2b;
  box-shadow: 0 6px 12px rgba(255,140,0,0.12);
}

.btn-secondary {
  position: relative;
  z-index: 11;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.06);
  color: #333;
}

/* Make the progress circles warmer */
._prog-bar {
  background: linear-gradient(135deg,#fff1b8,#ffd87a);
  color: #333;
  font-weight: 700;
}

/* Terms area: increase readability */
.terms-preview {
  background: rgba(255,255,255,0.6);
  padding: 12px;
  border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width:575.98px) {
  .canvas::after { height: 80px; background-size: 600px 80px; }
  .card { margin: 12px; }
}

/* Utility: subtle sun icon top-right */
.sun-decor {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 40% 35%, #fff9c4 0%, #ffd54f 40%, rgba(255,213,79,0.8) 70%);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(255,180,0,0.12);
  pointer-events: none;
  opacity: 0.95;
}

/* Keep form elements high contrast */
input[type="text"], input[type="email"], select, textarea {
  background: rgba(255,255,255,0.98);
}

/* Accessibility: focus ring */
input:focus, select:focus, button:focus, textarea:focus {
  outline: 3px solid rgba(255,200,90,0.36);
  outline-offset: 2px;
}
