:root {
  --yellow: #ffd400;
  --yellow-hover: #ffdf32;
  --yellow-dark: #d8b400;
  --black: #050505;
  --black-soft: #080808;
  --panel: rgba(7, 7, 7, 0.91);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #969696;
  --muted-light: #b8b8b8;
  --danger: #ff5555;
  --success: #72d572;
  --radius: 7px;
}

/* cyrillic-ext */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIuaomQNQcsA88c7O9yZ4KMCoOg4Koz4yOqhMva.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* vietnamese */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIuaomQNQcsA88c7O9yZ4KMCoOg4Koz4yGqhMva.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIuaomQNQcsA88c7O9yZ4KMCoOg4Koz4yCqhMva.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIuaomQNQcsA88c7O9yZ4KMCoOg4Koz4y6qhA.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko70yyygA.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* vietnamese */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko50yyygA.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yyygA.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  /* overflow: hidden; */
  background: var(--black);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.backToDashboard {
  position: absolute;
  top: 6.5vh;
  left: 11.4vw;
  height: 3.6vh;
  width: max-content;
  padding: 0 15px;
  border: 1px solid #b8b8b79b;
  border-radius: 3px;
  background-color: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all ease 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all ease 150ms;
  z-index: 9999999;
}

.backToDashboard:hover {
  opacity: 70%;
  transform: scale(1.05);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  overflow: hidden;
}

.page::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 10;
  height: 69px;
  min-height: 69px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(7px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.logo {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 30px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  color: #9d9d9d;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: var(--yellow);
}

.nav-link.active::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 20px;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: translateX(-50%);
}

.login-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 212, 0, 0.7);
  border-radius: 6px;
  background: transparent;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.login-nav svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.login-nav:hover {
  background: var(--yellow);
  color: #000;
}

.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 70px;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: 450px;
  max-width: 100%;
  padding: 35px 36px 31px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  animation: cardIn 0.45s ease forwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-small {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.auth-title {
  margin-bottom: 9px;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -1.1px;
}

.auth-description {
  max-width: 360px;
  margin-bottom: 28px;
  color: #999;
  font-size: 12px;
  line-height: 1.65;
}

.form-group {
  margin-bottom: 17px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: #d4d4d4;
  font-size: 11px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  outline: none;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 12px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-input::placeholder {
  color: #646464;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.form-input:focus {
  border-color: rgba(255, 212, 0, 0.75);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.07);
}

.form-input.is-valid {
  border-color: rgba(114, 213, 114, 0.65);
}

.form-input.is-invalid {
  border-color: rgba(255, 85, 85, 0.75);
}

.password-input {
  padding-right: 43px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  transform: translateY(-50%);
}

.toggle-password:hover {
  color: var(--yellow);
}

.toggle-password svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.field-message {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}

.field-message.show {
  display: block;
}

.password-hint {
  margin-top: 6px;
  color: #686868;
  font-size: 10px;
  line-height: 1.4;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0 21px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #898989;
  font-size: 10px;
  cursor: pointer;
}

.remember input {
  width: 13px;
  height: 13px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.forgot-link {
  color: #8b8b8b;
  font-size: 10px;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--yellow);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  background: var(--yellow);
  color: #050505;
  font-size: 12px;
  font-weight: 750;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.submit-btn:not(:disabled):hover {
  background: var(--yellow-hover);
  box-shadow: 0 7px 25px rgba(255, 212, 0, 0.15);
}

.submit-btn:not(:disabled):active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  box-shadow: none;
}

.switch-auth {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #777;
  font-size: 10px;
  text-align: center;
}

.switch-btn {
  margin-left: 3px;
  border: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.switch-btn:hover {
  text-decoration: underline;
}

.footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #5e5e5e;
  font-size: 9px;
  display: none;
}

.submit-btn.loading {
  pointer-events: none;
}

.spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.submit-btn.loading .spinner {
  display: block;
}

.submit-btn.loading .button-content {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .navbar {
    height: 62px;
    min-height: 62px;
  }
  body {
    overflow-y: auto;
  }
  .backToDashboard {
    position: relative;
    top: 3.5vh;
    left: 5%;
    margin-bottom: 5px;
  }
  .nav-inner {
    width: min(calc(100% - 30px), 1120px);
  }
  .nav-links {
    gap: 17px;
  }
  .nav-link {
    font-size: 11px;
  }
  .login-nav {
    height: 33px;
    padding: 0 10px;
  }
  .main {
    width: min(calc(100% - 30px), 1120px);
    padding: 45px 0 55px;
  }
}

@media (max-width: 620px) {
  .page {
    background:
      linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.94)),
      url("/images/library.jpg") center / cover no-repeat;
  }
  .nav-links .nav-link:nth-child(2),
  .nav-links .nav-link:nth-child(3),
  .nav-links .nav-link:nth-child(4) {
    display: none;
  }
  .auth-card {
    padding: 29px 23px 25px;
  }
  .auth-title {
    font-size: 27px;
  }
  .auth-description {
    margin-bottom: 24px;
  }
  .main {
    align-items: flex-start;
    padding-top: 32px;
  }
  .footer {
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .nav-inner {
    width: calc(100% - 20px);
  }
  .logo {
    font-size: 13px;
  }
  .login-nav {
    font-size: 10px;
  }
  .auth-card {
    padding: 25px 18px 23px;
  }
  .auth-title {
    font-size: 25px;
  }
}

.auth-alert {
  background-color: rgba(128, 128, 128, 0.281);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: 12px;
  border: #8b8b8b 1px solid;
}

.auth-alert .swal2-title {
  color: #ffffff;
  font-size: 18px;
}

.auth-alert .swal2-html-container {
  color: #cccccc;
}

@media (max-width: 800px), (pointer: coarse) {
  .auth-wrapper .form-input {
    font-size: 16px;
  }
}