@font-face {
  font-family: 'Sao Torpes';
  src: url('/static/core/fonts/SaoTorpes.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Lexend';
  src: url('https://fonts.gstatic.com/s/lexend/v17/wlp2gwHKFkZgtmSR3NB0oRJf-VfW.woff2') format('woff2');
}

body {
  margin: 0;
  padding: 0;
  background-color: #111;
  font-family: 'Lexend', sans-serif;
}

.step-label {
  font-family: 'Sao Torpes', sans-serif;
}

.cfa-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfa-content {
  max-width: 650px;
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  padding: 2rem;
}

.cfa-content h1 {
  font-family: 'Sao Torpes', sans-serif;
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.cfa-content p {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.register-btn {
  background-color: #c4f800;
  color: black;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: #aee600;
}

.shape {
  position: absolute;
  z-index: 1;
}

.shape1 { top: 0; left: 190px; width: 200px; height: 120px; }
.shape2 { top: 0; right: 170px; width: 200px; height: 120px; }
.shape3 { top: 0; right: 0; width: 120px; height: 120px; }
.shape4 { top: 35%; right: 0; transform: translateY(-50%); width: 150px; height: 200px; }
.shape5 { bottom: 0; right: 0; width: 150px; height: 120px; }
.shape6 { bottom: 0; left: 400px; width: 150px; height: 120px; }
.shape7 { bottom: 0; left: 200px; width: 200px; height: 120px; }
.shape8 { top: 67%; left: 0; transform: translateY(-50%); width: 190px; height: 200px; }

.shapes-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

/* Layout B */
.shapes-wrapper.layout-b .shape1 {
  top: 75%;
  left: 0;
  width: 190px;
  height: 300px;
  transform: translateY(-50%);
}

.shapes-wrapper.layout-b .shape2 {
  top: 0;
  right: 170px;
  width: 200px;
  height: 120px;
  transform: none;
}

.shapes-wrapper.layout-b .shape3 {
  top: 0;
  left: 190px;
  width: 200px;
  height: 120px;
  transform: none;
}

.shapes-wrapper.layout-b .shape4 {
  top: auto;
  bottom: 0;
  right: 0;
  left: auto;
  width: 160px;
  height: 120px;
  transform: none;
}

.shapes-wrapper.layout-b .shape5 {
  top: 0;
  right: 0;
  width: 140px;
  height: 95px;
  transform: scaleY(-1);
}

.shapes-wrapper.layout-b .shape6 {
  bottom: 0;
  left: 350px;
  width: 200px;
  height: 120px;
  transform: none;
}

.shapes-wrapper.layout-b .shape7 {
  top: 35%;
  right: 0;
  left: auto;
  width: 150px;
  height: 250px;
  transform: translateY(-50%);
}

.shapes-wrapper.layout-b .shape8 {
  top: auto;
  bottom: 0;
  left: 200px;
  right: auto;
  width: 190px;
  height: 120px;
  transform: none;
}

/* Tablets */
@media (max-width: 768px) {
  .shape {
    width: 60px !important;
    height: 60px !important;
  }

  .shape5, .shape6, .shape7 {
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .shape5 { right: 0; }
  .shape6 { left: 50%; transform: translateX(-50%); }
  .shape7 { left: 0; }

  .shape1 { top: 0; left: 10px; }
  .shape2 { top: 0; right: 10px; }
  .shape3 { display: none; }
  .shape4 { right: 0; top: 40%; }
  .shape8 { left: 0; bottom: 40%; top: auto; }

  .cfa-content h1 {
    font-size: 2rem;
  }

  .cfa-content p {
    font-size: 1rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  .cfa-content h1 {
    font-size: 1.5rem;
  }

  .cfa-content p {
    font-size: 0.9rem;
  }

  .register-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .shape {
    width: 50px !important;
    height: 50px !important;
    transition: top 0.8s ease, left 0.8s ease, right 0.8s ease, bottom 0.8s ease;
  }

  /* Special fix for layout-b on small screens */
  .shapes-wrapper.layout-b .shape1 {
    top: 60%;
  }
}
