:root {
  --auth-navy: #4a0505;
  --auth-deep: #7a0909;
  --auth-red: #9f1111;
  --auth-red-bright: #c01818;
  --auth-orange: #f5a400;
  --auth-text: #3b0808;
  --auth-muted: #6f5f67;
  --auth-border: #f1d7d7;
  --auth-input: #efd1d1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.auth-screen {
  overflow-x: hidden;
  background: #fff;
  color: var(--auth-text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.auth-screen *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-screen .fa,
body.auth-screen [class^="fa-"],
body.auth-screen [class*=" fa-"] {
  font-family: FontAwesome !important;
}

.auth-split {
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100%;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 36px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 96, 96, .22), transparent 26%),
    radial-gradient(circle at 76% 31%, rgba(245, 164, 0, .14), transparent 24%),
    linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-deep) 48%, var(--auth-red-bright) 100%);
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-visual::before {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, .10) 18.2%, transparent 18.6% 54%, rgba(245, 164, 0, .10) 54.2%, transparent 54.6%),
    radial-gradient(circle at 30% 68%, rgba(255, 255, 255, .16) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, .14) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 58%, rgba(255, 255, 255, .12) 0 1px, transparent 2px);
  opacity: .95;
}

.auth-visual::after {
  left: -80px;
  right: -90px;
  bottom: -150px;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(255, 80, 80, .24), transparent 68%);
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  object-fit: contain;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.auth-brand-title {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
}

.auth-brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--auth-orange);
  font-size: 14px;
  font-weight: 900;
}

.auth-brand-rule {
  width: 72px;
  height: 4px;
  margin: 28px 0 26px;
  border-radius: 999px;
  background: var(--auth-orange);
  box-shadow: 0 0 18px rgba(245, 164, 0, .42);
}

.auth-visual-heading {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.auth-orange {
  color: var(--auth-orange);
}

.auth-visual-description {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.auth-feature-list {
  display: grid;
  gap: 16px;
  max-width: 610px;
  margin-top: 28px;
  padding-bottom: 150px;
}

.auth-feature-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.auth-feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: var(--icon-color);
  font-size: 21px;
  box-shadow: 0 0 24px rgba(181, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.auth-feature-row h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.auth-feature-row p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-campus-img {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  z-index: 1;
  width: calc(100% - 56px);
  max-height: 245px;
  object-fit: contain;
  object-position: bottom center;
  opacity: .78;
  filter: saturate(1.1);
}

.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  overflow: auto;
  padding: 24px 30px;
  background:
    radial-gradient(circle at 88% 84%, rgba(160, 0, 0, .07), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 38px;
  width: 144px;
  height: 144px;
  opacity: .50;
  background-image: radial-gradient(#e4b8b8 1.3px, transparent 1.3px);
  background-size: 15px 15px;
}

.auth-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 42px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(160, 0, 0, .13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(160, 0, 0, .035), inset 0 0 0 66px rgba(160, 0, 0, .025);
}

.auth-card-wrap {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
}

.auth-card-wrap.wide {
  width: min(86%, 100%);
}

.auth-card {
  padding: 28px 30px 24px;
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(70, 0, 0, .13);
}

.auth-card-head {
  text-align: center;
}

.auth-user-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--auth-red);
  background: #fff0f0;
  font-size: 30px;
}

.auth-card h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 29px;
  font-weight: 900;
}

.auth-subtitle {
  margin: 8px 0 22px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-alert {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.auth-alert.danger {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.auth-alert.success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-form-grid .full {
  grid-column: 1 / -1;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-form-grid .auth-field {
  margin-bottom: 0;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #4f1414;
  font-size: 13px;
  font-weight: 900;
}

.auth-field-error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: #b50000;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-input-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--auth-input);
  border-radius: 14px;
  background: #fffdfd;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input-shell.no-action {
  grid-template-columns: 40px minmax(0, 1fr);
}

.auth-input-shell:focus-within {
  border-color: #d88989;
  box-shadow: 0 0 0 4px rgba(160, 0, 0, .09);
}

.auth-input-shell i {
  color: #9b7575;
  text-align: center;
  font-size: 15px;
}

.auth-input-shell input,
.auth-input-shell select {
  width: 100%;
  min-width: 0;
  height: 48px !important;
  border: 0;
  outline: 0;
  color: #3e2222;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.auth-input-shell input::placeholder {
  color: #ad9999;
  opacity: 1;
}

.auth-eye-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  color: #9b7575;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 3px 0 20px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6f5f67;
  font-size: 13px;
  font-weight: 800;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-red);
}

.auth-link-blue {
  color: var(--auth-red);
  font-size: 13px;
  font-weight: 900;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 51px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-red), var(--auth-red-bright));
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(160, 0, 0, .24);
  cursor: pointer;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 20px 0 17px;
  color: #a58f8f;
  font-size: 13px;
  font-weight: 900;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #f0dddd;
}

.auth-switch-text {
  margin: 0;
  color: #74636b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.auth-switch-text a,
.auth-back-home {
  color: var(--auth-red);
  font-weight: 900;
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
}

.auth-footer {
  margin: 16px auto 0;
  color: #8f7979;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.auth-screen a:hover {
  text-decoration: none;
}

@media (min-width: 901px) {
  .signup-screen .auth-panel {
    align-items: center;
    min-height: 100vh;
    padding: 8px 0;
    overflow: hidden;
  }

  .signup-screen .auth-card-wrap.wide {
    width: calc(100% - 12px);
    max-width: none;
  }

  .signup-screen .auth-card {
    padding: 16px 18px 14px;
    border-radius: 20px;
  }

  .signup-screen .auth-user-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 7px;
    font-size: 22px;
  }

  .signup-screen .auth-card h1 {
    font-size: 23px;
  }

  .signup-screen .auth-subtitle {
    margin: 4px 0 10px;
    font-size: 12px;
  }

  .signup-screen .auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .signup-screen .auth-form-grid .full {
    grid-column: 1 / -1;
  }

  .signup-screen .auth-field label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .signup-screen .auth-input-shell {
    min-height: 39px;
    border-radius: 11px;
  }

  .signup-screen .auth-input-shell input,
  .signup-screen .auth-input-shell select {
    height: 37px;
    font-size: 12px;
  }

  .signup-screen .auth-submit {
    min-height: 40px;
    margin-top: 10px !important;
    border-radius: 12px;
    font-size: 14px;
  }

  .signup-screen .auth-divider {
    margin: 9px 0 7px;
  }

  .signup-screen .auth-switch-text,
  .signup-screen .auth-back-home,
  .signup-screen .auth-footer {
    font-size: 12px;
  }

  .signup-screen .auth-back-home {
    margin-top: 8px;
  }

  .signup-screen .auth-footer {
    margin-top: 6px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .auth-visual {
    padding: 24px 32px;
  }

  .auth-brand-rule {
    margin: 20px 0 18px;
  }

  .auth-visual-heading {
    font-size: 34px;
  }

  .auth-visual-description {
    margin-top: 14px;
    line-height: 1.5;
  }

  .auth-feature-list {
    gap: 11px;
    margin-top: 20px;
    padding-bottom: 112px;
  }

  .auth-feature-icon {
    width: 43px;
    height: 43px;
  }

  .auth-feature-row {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .auth-feature-row p {
    font-size: 13px;
  }

  .auth-campus-img {
    max-height: 170px;
    opacity: .58;
  }

  .auth-card {
    padding: 20px 24px 18px;
  }

  .auth-user-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 9px;
  }

  .auth-card h1 {
    font-size: 25px;
  }

  .auth-subtitle {
    margin-bottom: 16px;
  }
}

@media (max-width: 1100px) {
  .auth-visual,
  .auth-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .auth-visual-heading {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  body.auth-screen {
    overflow: auto;
  }

  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: auto;
    padding: 26px 22px 190px;
  }

  .auth-visual-content {
    min-height: auto;
  }

  .auth-brand-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .auth-brand-title {
    font-size: 15px;
  }

  .auth-brand-rule {
    margin: 22px 0 18px;
  }

  .auth-visual-heading {
    font-size: 31px;
  }

  .auth-visual-description br,
  .auth-feature-row p br {
    display: none;
  }

  .auth-feature-list {
    padding-bottom: 0;
  }

  .auth-campus-img {
    max-height: 170px;
    opacity: .54;
  }

  .auth-panel {
    min-height: auto;
    padding: 22px 14px;
  }
}

@media (max-width: 620px) {
  .auth-visual {
    padding: 22px 16px 150px;
  }

  .auth-brand-row {
    align-items: flex-start;
  }

  .auth-visual-heading {
    font-size: 27px;
  }

  .auth-visual-description {
    font-size: 14px;
  }

  .auth-feature-list {
    gap: 13px;
  }

  .auth-feature-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .auth-card {
    padding: 24px 18px 22px;
    border-radius: 20px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
