/* Look and feel based on trakdesign.lafonddesjardins.com */

:root {
  --text: #1E1E1E;
  --muted: #4B4B4B;
  --green: #7AE876;
  --sand-dark: #AEA69B;
  --sand-light: #CECCC5;
  --white: #FFFFFF;
  --warning: #E8A317;
  --warning-bg: #FFF4D6;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(var(--sand-dark), var(--sand-light), var(--sand-dark)) no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Header: white bar with the logo, like the site */
.site-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 40px;
  background: var(--white);
}

.site-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.site-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

/* Main: centered column */
main {
  flex: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 60px 20px;
}

h1 {
  margin: 0px 0 10px;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

h2 {
  margin: 50px 0 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
}


label {
  display: block;
  margin-top: 25px;
  color: var(--muted);
  font-size: 14px;
}

/* Inputs: underline only, transparent background */
input {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--text);
  font: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

input:focus {
  outline: none;
  border-bottom-width: 2px;
  padding-bottom: 9px;
}

/* Buttons: green background with an arrow, fade on hover */
button {
  position: relative;
  margin-top: 25px;
  padding: 12px 44px 12px 20px;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  background: var(--green);
  border: none;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

button::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease);
}

/* Warning: amber box with a strong left edge */
.warning {
  margin: 15px 0 0;
  padding: 12px 20px;
  color: var(--text);
  font-size: 14px;
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
}

.warning[hidden] { display: none; }
