:root {
  --bg-color: #FAF6F0;
  --card-bg: #FFFDF9;
  --text-dark: #2D1A13;
  --text-muted: #5D4037;
  --border-color: #E6D5C3;
  --btn-gradient-1: #3E2723;
  --btn-gradient-2: #8D6E63;
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Big Minimalist Background Cookies */
.bg-cookie {
  position: absolute;
  width: 45vw;
  max-width: 400px;
  min-width: 250px;
  z-index: 0;
  opacity: 0.8;
}

.bg-cookie.top-left {
  top: -10%;
  left: -10%;
  transform: rotate(-15deg);
}

.bg-cookie.bottom-right {
  bottom: -10%;
  right: -10%;
  transform: rotate(25deg);
}

/* Main Card */
.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  box-shadow: 0 12px 40px rgba(93, 64, 55, 0.08);
  overflow: hidden; /* Clips the edge decorations */
}

/* Card Edge Decorations */
.card-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
}
.card-edge.top { top: 0; }
.card-edge.bottom { bottom: 0; }

.edge-cookie {
  position: absolute;
  width: 50px;
  height: 50px;
}

/* Header */
.card-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.title-icon {
  font-size: 1.8rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Form Styles */
form {
  position: relative;
  z-index: 2;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.input-wrapper, .textarea-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #A68A7C;
}

input {
  width: 100%;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 14px 14px 44px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
  outline: none;
}

textarea {
  width: 100%;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
  transition: border-color 0.2s ease;
  outline: none;
}

input:focus, textarea:focus {
  border-color: #A68A7C;
}

input::placeholder, textarea::placeholder {
  color: #BCAAA4;
  font-weight: 500;
}

/* Mini Overlapping Cookies on Textarea */
.mini-cookie {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.mini-cookie.m1 {
  top: -12px;
  right: 10px;
  transform: rotate(15deg);
}
.mini-cookie.m2 {
  bottom: 20px;
  right: -15px;
  transform: rotate(-20deg);
}

/* Button */
button {
  width: 100%;
  background: linear-gradient(90deg, var(--btn-gradient-1) 0%, var(--btn-gradient-2) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 25px; /* Pill shape */
  padding: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(62, 39, 35, 0.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 39, 35, 0.35);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Notifications */
.status-box {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.status-box.success { color: #388E3C; }
.status-box.error { color: #D32F2F; }

.hidden { display: none !important; }

/* Footer */
.footer-text {
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  z-index: 1;
}