:root {
  --cerulean-blue: #A5BCD6;
  --light-blue: #EAF2F8;
  --soft-blue: #DCE9F3;
  --transparent-yellow: #F5EFC6;
  --gold: #F2B72B;
  --sceptre-red: #4D0E12;
  --dark-red: #380A0D;
  --potting-soil: #4A2E27;
  --java-brown: #231815;
  --primary-blue: #1A4D7C;
  --blue: #245A8D;
  --text-dark: #231815;
  --text-muted: #6B625F;
  --white: #FFFFFF;
  --background: #F8F7F5;
  --border: #E5E1DE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 8%, rgba(165,188,214,.28), transparent 30%),
    radial-gradient(circle at 94% 92%, rgba(245,239,198,.42), transparent 28%),
    var(--background);
  color: var(--text-dark);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.signup-container {
  width: min(1240px, 100%);
  min-height: min(790px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(77,14,18,.10);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(35,24,21,.10);
}


.welcome-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  padding: 42px 44px 36px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--light-blue) 0%,
    var(--cerulean-blue) 58%,
    var(--transparent-yellow) 100%
  );
}

.welcome-panel::before,
.welcome-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.welcome-panel::before {
  width: 390px;
  height: 390px;
  top: 120px;
  left: -175px;
  background: rgba(255,255,255,.38);
}

.welcome-panel::after {
  width: 300px;
  height: 300px;
  right: -125px;
  bottom: -70px;
  background: rgba(242,183,43,.20);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand-logo-box {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.brand-name {
  color: var(--primary-blue);
  font-weight: 800;
}


.welcome-content {
  max-width: 470px;
  margin: 34px 0 0;
}

.welcome-tag {
  display: inline-flex;
  padding: 8px 13px;
  color: var(--sceptre-red);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(77,14,18,.10);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.welcome-content h1 {
  max-width: 430px;
  margin: 18px 0 12px;
  color: var(--java-brown);
  font-size: clamp(32px,3.4vw,46px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.welcome-content p {
  max-width: 390px;
  color: var(--potting-soil);
  font-size: 15px;
  line-height: 1.75;
}

.learning-art {
  position: relative;
  width: 100%;
  max-width: 530px;
  height: 300px;
  margin: 12px auto 0;
}

.art-circle {
  position: absolute;
  border-radius: 50%;
}

.circle-one {
  width: 220px;
  height: 220px;
  left: 10%;
  bottom: 5px;
  background: rgba(255,255,255,.35);
}

.circle-two {
  width: 160px;
  height: 160px;
  right: 8%;
  bottom: 15px;
  background: rgba(245,239,198,.65);
}

.art-book {
  position: absolute;
  z-index: 2;
  top: 45px;
  left: 16%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--sceptre-red);
  background: var(--transparent-yellow);
  border: 1px solid rgba(77,14,18,.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(35,24,21,.10);
  font-size: 30px;
  transform: rotate(-10deg);
}

.art-laptop {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 25px;
  width: 210px;
  transform: translateX(-50%);
}

.laptop-screen {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sceptre-red);
  background: var(--white);
  border: 7px solid var(--primary-blue);
  border-radius: 13px 13px 5px 5px;
  box-shadow: 0 10px 25px rgba(35,24,21,.12);
  font-size: 42px;
}

.laptop-screen span {
  width: 65px;
  height: 6px;
  background: var(--cerulean-blue);
  border-radius: 10px;
}

.laptop-screen span:last-child {
  width: 42px;
}

.laptop-base {
  width: 230px;
  height: 12px;
  margin-left: -10px;
  background: var(--potting-soil);
  border: 2px solid var(--java-brown);
  border-radius: 3px 3px 12px 12px;
}

.art-star {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: var(--sceptre-red);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(35,24,21,.10);
}

.star-one {
  top: 100px;
  right: 12%;
  color: var(--gold);
}

.star-two {
  top: 15px;
  right: 30%;
  color: var(--primary-blue);
  background: var(--transparent-yellow);
}

.welcome-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--potting-soil);
  font-size: 12px;
  font-weight: 600;
}

.welcome-footer i {
  color: var(--sceptre-red);
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px clamp(30px,5.5vw,76px);
  background: var(--white);
}

.form-content {
  width: 100%;
  max-width: 430px;
}

.mobile-brand {
  display: none;
}

.user-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: var(--sceptre-red);
  background: var(--transparent-yellow);
  border-radius: 17px;
  font-size: 22px;
}

.form-heading {
  margin-bottom: 26px;
  text-align: center;
}

.form-heading h2 {
  color: var(--java-brown);
  font-size: clamp(26px,2.5vw,32px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.form-heading p {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.google-button {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--java-brown);
  background: var(--white);
  border: 1.5px solid var(--cerulean-blue);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.google-button i {
  color: #4285F4;
  font-size: 17px;
}

.google-button:hover {
  background: var(--light-blue);
  border-color: var(--primary-blue);
}

.separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}


.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--java-brown);
  font-size: 12px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  color: var(--java-brown);
  background: #FEFEFE;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-size: 13px;
  transition: .2s ease;
}

.form-group input::placeholder {
  color: #9A9390;
}

.form-group input:focus {
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(165,188,214,.35);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--potting-soil);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--sceptre-red);
  background: var(--light-blue);
}

.password-hint {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 19px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.terms input {
  margin: 2px 0 0;
  accent-color: var(--sceptre-red);
}

.terms a,
.login-text a {
  color: var(--sceptre-red);
  font-weight: 700;
  text-underline-offset: 3px;
}

.terms a:hover,
.login-text a:hover {
  color: var(--primary-blue);
}

.signup-button {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--transparent-yellow);
  background: var(--sceptre-red);
  border: 1.5px solid var(--sceptre-red);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(77,14,18,.16);
  transition: .2s ease;
}

.signup-button:hover {
  color: var(--white);
  background: var(--dark-red);
  border-color: var(--dark-red);
  box-shadow: 0 9px 20px rgba(56,10,13,.22);
  transform: translateY(-1px);
}

.form-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--sceptre-red);
  background: var(--transparent-yellow);
  border: 1px solid rgba(77,14,18,.18);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.form-message.show {
  display: block;
}

.login-text {
  margin: 19px 0 22px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--potting-soil);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: .2s ease;
}

.social-links a:hover {
  color: var(--transparent-yellow);
  background: var(--sceptre-red);
  border-color: var(--sceptre-red);
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body {
    padding: 18px;
  }

  .signup-container {
    min-height: calc(100vh - 36px);
  }

  .welcome-panel {
    padding: 34px 30px 28px;
  }

  .form-panel {
    padding: 40px 32px;
  }

  .welcome-content h1 {
    font-size: 35px;
  }

  .learning-art {
    transform: scale(.9);
    transform-origin: center;
  }

  .brand {
    font-size: 19px;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  body {
    display: block;
    padding: 0;
    background: var(--white);
  }

  .signup-container {
    width: 100%;
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .welcome-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 32px 24px;
  }

  .form-content {
    max-width: 440px;
  }

  .mobile-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 19px;
  }

  .mobile-brand .brand-logo-box {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 380px) {
  .form-panel {
    padding: 25px 18px;
  }

  .form-heading h2 {
    font-size: 25px;
  }

  .form-group input {
    height: 46px;
  }

  .google-button,
  .signup-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ========================================
   STUDENT AND TEACHER ACCOUNT TYPE
======================================== */

.role-group {
    margin-bottom: 18px;
}

.role-group > label {
    display: block;
    margin-bottom: 9px;
    color: var(--java-brown);
    font-size: 12px;
    font-weight: 700;
}

.signup-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.signup-role-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.signup-role-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.signup-role-content {
    min-height: 135px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    background: #FEFEFE;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: 0.2s ease;
}

.signup-role-content i {
    color: var(--primary-blue);
    font-size: 26px;
}

.signup-role-content strong {
    color: var(--java-brown);
    font-size: 13px;
    font-weight: 800;
}

.signup-role-content small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 400;
}

.signup-role-card input:checked + .signup-role-content {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(26, 77, 124, 0.10);
}

.signup-role-card:hover .signup-role-content {
    border-color: var(--primary-blue);
}

.signup-role-card input:focus-visible + .signup-role-content {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .signup-role-options {
        gap: 8px;
    }

    .signup-role-content {
        min-height: 125px;
        padding: 12px 7px;
    }
}