
/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* =========================================================
   ROOT
   ========================================================= */

:root {
  --rotary-yellow: #f3c400;
  --rotary-orange: #f08a00;
  --link-orange: #e59a00;

  --text-dark: #222222;
  --text-medium: #666666;
  --text-light: #777777;

  --border-color: #c9c9c9;

  --radius: 19px;
}


/* =========================================================
   BODY
   ========================================================= */

body {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 30px;

  background: #ffffff;

  color: var(--text-dark);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  overflow-x: hidden;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   MAIN MODAL
   ========================================================= */

.modal-container {
  position: relative;

  width: min(760px, 100%);

  min-height: 370px;

  display: flex;

  background: #ffffff;

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-btn {
  position: absolute;

  top: 21px;
  right: 42px;

  z-index: 20;

  width: 30px;
  height: 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;

  border: none;

  background: transparent;

  color: #111111;

  font-size: 25px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.close-btn:hover {
  color: #555555;

  transform: scale(1.08);
}


.close-btn:focus-visible {
  outline: 2px solid var(--rotary-orange);

  outline-offset: 3px;

  border-radius: 4px;
}


/* =========================================================
   LEFT ROTARY PANEL
   ========================================================= */

.banner-side {
  position: relative;

  flex: 0 0 243px;

  min-height: 370px;

  display: flex;

  justify-content: flex-end;
  align-items: center;

  padding: 0 20px 17px;

  background: var(--rotary-yellow);

  overflow: hidden;
}


/* =========================================================
   ROTARY DECORATIVE PATTERN
   ========================================================= */

.rotary-pattern {
  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background-image:
    url("/images/rotary-logo.png"),
    url("/images/rotary-logo.png"),
    url("/images/rotary-logo.png"),
    url("/images/rotary-logo.png");

  background-repeat: no-repeat;

  background-size:
    108px 108px,
    108px 108px,
    108px 108px,
    108px 108px;

  background-position:
    -31px 0,
    79px 63px,
    -27px 168px,
    80px 228px;

  opacity: 0.16;
}


/* =========================================================
   BANNER FOOTER
   ========================================================= */

.banner-footer {
  position: relative;

  z-index: 5;

  width: 100%;

  text-align: center;

  color: #ffffff;
}


/* POWERED BY */

.banner-footer span {
  display: block;

  margin-bottom: 3px;

  color: #ffffff;

  font-size: 9px;
  font-weight: 700;

  font-style: italic;

  letter-spacing: 0.1px;

  text-transform: uppercase;
}


/* LEARNSMART */

.banner-footer strong {
  display: block;

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  line-height: 1;
}


/* =========================================================
   RIGHT FORM AREA
   ========================================================= */

.form-side {
  flex: 1;

  min-width: 0;

  padding:
    59px
    50px
    40px
    57px;
}


/* =========================================================
   FORM CONTENT
   ========================================================= */

.form-content {
  width: 100%;

  max-width: 360px;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.form-header h1 {
  margin-bottom: 5px;

  color: var(--text-dark);

  font-size: 23px;
  font-weight: 700;

  line-height: 1.2;
}


.subtitle {
  margin-bottom: 17px;

  color: var(--text-light);

  font-size: 10px;
  font-weight: 400;

  line-height: 1.4;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form {
  width: 100%;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
  width: 100%;

  margin-bottom: 15px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {
  width: 100%;
  height: 34px;

  display: block;

  padding: 0 11px;

  border: 1px solid var(--border-color);

  border-radius: 5px;

  outline: none;

  background: #ffffff;

  color: #333333;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 10px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.form-group input::placeholder {
  color: #777777;

  opacity: 1;
}


.form-group input:focus {
  border-color: #bdbdbd;

  box-shadow:
    0 0 0 2px rgba(243, 174, 0, 0.08);
}


/* =========================================================
   OPTIONS ROW
   ========================================================= */

.options-row {
  width: 100%;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 15px;

  margin-top: 1px;
  margin-bottom: 20px;

  font-size: 10px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.remember-me {
  display: flex;

  align-items: center;

  gap: 4px;

  color: #555555;

  cursor: pointer;

  white-space: nowrap;
}


.remember-me input {
  width: 12px;
  height: 12px;

  margin: 0;

  accent-color: #e9a000;

  cursor: pointer;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.forgot-link {
  flex-shrink: 0;

  color: var(--link-orange);

  font-size: 10px;

  text-decoration: none;

  white-space: nowrap;
}


.forgot-link:hover {
  text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.submit-btn {
  width: 100%;
  height: 27px;

  display: flex;

  justify-content: center;
  align-items: center;

  padding: 0;

  margin-bottom: 14px;

  border: 1px solid var(--rotary-orange);

  border-radius: 5px;

  background: #ffffff;

  color: #888888;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;
  font-weight: 400;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.submit-btn:hover {
  background: var(--rotary-orange);

  color: #ffffff;
}


.submit-btn:active {
  transform: scale(0.98);
}


.submit-btn:focus-visible {
  outline: 2px solid var(--rotary-orange);

  outline-offset: 2px;
}


/* =========================================================
   SIGN UP TEXT
   ========================================================= */

.signup-text {
  width: 100%;

  color: var(--text-medium);

  font-size: 9px;
  font-weight: 400;

  line-height: 1.5;

  text-align: center;
}


/* =========================================================
   SIGN UP LINKS
   ========================================================= */

.signup-text a {
  color: var(--link-orange);

  text-decoration: none;

  white-space: nowrap;
}


.signup-text a:hover {
  text-decoration: underline;
}


/* =========================================================
   =========================================================
   TABLET
   =========================================================
   ========================================================= */

@media (max-width: 760px) {

  body {
    padding: 24px;
  }


  .modal-container {
    width: min(680px, 100%);
  }


  .banner-side {
    flex-basis: 215px;
  }


  .form-side {
    padding-left: 42px;
    padding-right: 42px;
  }


  .close-btn {
    right: 28px;
  }

}


/* =========================================================
   =========================================================
   SMALL TABLET / LARGE PHONE
   =========================================================
   ========================================================= */

@media (max-width: 600px) {

  body {
    min-height: 100svh;

    padding: 20px;
  }


  .modal-container {
    width: 100%;

    min-height: 0;

    flex-direction: column;

    border-radius: 16px;
  }


  /* -----------------------------------------
     YELLOW HEADER
     ----------------------------------------- */

  .banner-side {
    flex: none;

    width: 100%;

    min-height: 150px;

    height: 150px;

    padding:
      0
      30px
      20px;
  }


  .rotary-pattern {
    background-size:
      85px 85px,
      85px 85px,
      85px 85px,
      85px 85px;

    background-position:
      -20px -12px,
      120px 15px,
      30px 85px,
      175px 100px;

    opacity: 0.14;
  }


  .banner-footer {
    margin-top: auto;
  }


  .banner-footer span {
    font-size: 8px;
  }


  .banner-footer strong {
    font-size: 14px;
  }


  /* -----------------------------------------
     FORM
     ----------------------------------------- */

  .form-side {
    width: 100%;

    padding:
      34px
      30px
      35px;
  }


  .form-content {
    max-width: 100%;
  }


  .form-header h1 {
    font-size: 22px;
  }


  .subtitle {
    margin-bottom: 20px;

    font-size: 10px;
  }


  .form-group {
    margin-bottom: 16px;
  }


  .form-group input {
    height: 40px;

    padding: 0 12px;

    font-size: 11px;
  }


  .options-row {
    margin-bottom: 20px;

    font-size: 10px;
  }


  .forgot-link {
    font-size: 10px;
  }


  .submit-btn {
    height: 38px;

    font-size: 11px;
  }


  .signup-text {
    font-size: 9px;

    line-height: 1.7;
  }


  .close-btn {
    top: 15px;
    right: 15px;

    width: 28px;
    height: 28px;

    color: #222222;

    font-size: 24px;
  }

}


/* =========================================================
   =========================================================
   MOBILE
   =========================================================
   ========================================================= */

@media (max-width: 480px) {

  body {
    padding: 14px;
  }


  .modal-container {
    border-radius: 14px;
  }


  /* -----------------------------------------
     MOBILE YELLOW HEADER
     ----------------------------------------- */

  .banner-side {
    height: 130px;

    min-height: 130px;

    padding-bottom: 17px;
  }


  .rotary-pattern {
    background-size:
      72px 72px,
      72px 72px,
      72px 72px,
      72px 72px;

    background-position:
      -18px -8px,
      90px 12px,
      10px 75px,
      140px 70px;
  }


  /* -----------------------------------------
     MOBILE FORM
     ----------------------------------------- */

  .form-side {
    padding:
      30px
      22px
      30px;
  }


  .form-header h1 {
    margin-bottom: 4px;

    font-size: 21px;
  }


  .subtitle {
    margin-bottom: 18px;

    font-size: 10px;
  }


  .form-group {
    margin-bottom: 14px;
  }


  .form-group input {
    height: 40px;

    border-radius: 5px;

    font-size: 11px;
  }


  .options-row {
    gap: 10px;

    margin-bottom: 18px;

    font-size: 9px;
  }


  .remember-me input {
    width: 11px;
    height: 11px;
  }


  .forgot-link {
    font-size: 9px;
  }


  .submit-btn {
    height: 38px;

    margin-bottom: 13px;

    border-radius: 5px;

    font-size: 11px;
  }


  .signup-text {
    font-size: 8.5px;

    line-height: 1.7;
  }


  .close-btn {
    top: 12px;
    right: 12px;
  }

}


/* =========================================================
   =========================================================
   VERY SMALL PHONES
   =========================================================
   ========================================================= */

@media (max-width: 360px) {

  body {
    padding: 10px;
  }


  .banner-side {
    height: 115px;

    min-height: 115px;

    padding-bottom: 14px;
  }


  .rotary-pattern {
    background-size:
      62px 62px,
      62px 62px,
      62px 62px,
      62px 62px;

    background-position:
      -15px -5px,
      78px 8px,
      5px 65px,
      125px 60px;
  }


  .banner-footer span {
    font-size: 7px;
  }


  .banner-footer strong {
    font-size: 12px;
  }


  .form-side {
    padding:
      26px
      18px
      25px;
  }


  .form-header h1 {
    font-size: 20px;
  }


  .subtitle {
    font-size: 9px;
  }


  .form-group input {
    height: 38px;

    font-size: 10px;
  }


  .options-row {
    font-size: 8.5px;
  }


  .forgot-link {
    font-size: 8.5px;
  }


  .submit-btn {
    height: 36px;
  }


  .signup-text {
    font-size: 8px;
  }


  .close-btn {
    top: 9px;
    right: 9px;

    font-size: 22px;
  }

}


/* =========================================================
   =========================================================
   LANDSCAPE PHONES
   =========================================================
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

  body {
    min-height: 100svh;

    padding: 12px;
  }


  .modal-container {
    max-height: calc(100svh - 24px);

    overflow-y: auto;
  }


  .banner-side {
    min-height: 280px;

    height: 280px;
  }


  .form-side {
    padding-top: 35px;
    padding-bottom: 30px;
  }

}


/* =========================================================
   =========================================================
   REDUCED MOTION
   =========================================================
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }

}
