/* The website's look on both Unfold sites (SaaS admin and school panel): Figtree and
   Caprasimo, the light blue-grey background and soft shapes. Colours and corner radius come from
   the UNFOLD settings (VIDYAVANE_COLORS, BORDER_RADIUS); this file only adds what those
   can't express. Unlayered CSS, so it wins over Unfold's Tailwind layers. */

@font-face { font-family: "Caprasimo"; src: url("../fonts/Caprasimo-Regular.91e7dcc5194d.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Regular.9703770ed23e.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Medium.fba97fe73891.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-SemiBold.2605c37a9eff.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vv-bg: #E8F0F6;
  --vv-primary: #1377C0;
}

/* Page titles and the site name in Caprasimo, as on the website and in the app. */
#content h1,
#header-inner h1,
h1.font-semibold,
.unfold-site-header {
  font-family: "Caprasimo", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Soft blue-grey background behind the white cards. */
body:not(.login) {
  background-color: var(--vv-bg);
}

/* Buttons and inputs: pill-shaped primary actions, soft focus ring. */
button[type="submit"].bg-primary-600,
a.bg-primary-600,
input[type="submit"] {
  border-radius: 999px;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(19, 119, 192, 0.15);
}

/* Sign-in pages: the landing page's soft shapes, the form on a white card. */
body.login #page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42vmax 42vmax at 100% 0%, rgba(146, 195, 232, 0.65), transparent 70%),
    radial-gradient(30vmax 30vmax at 0% 100%, rgba(194, 220, 229, 0.9), transparent 70%),
    radial-gradient(16vmax 16vmax at 60% 15%, rgba(227, 240, 250, 0.8), transparent 70%),
    var(--vv-bg);
}
body.login #page > div > .w-full {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 60px -24px rgba(8, 46, 71, 0.35), 0 1px 2px rgba(22, 34, 45, 0.12);
}
body.login #page > div > .w-full h1 span:last-child {
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--vv-primary);
}
