@import url("./variable.css");

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================================
   BODY
========================================================= */

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  color: var(--color-text-primary);

  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(59, 130, 196, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(90, 169, 214, 0.13),
      transparent 32%
    ),
    linear-gradient(135deg, #f8fbfd 0%, #f5f7fa 50%, #eef6fb 100%);

  overflow-x: hidden;
}

/* =========================================================
   BACKGROUND DECORATION
========================================================= */

body::before,
body::after {
  content: "";

  position: fixed;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(80px);

  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;

  top: -180px;
  left: -150px;

  background: rgba(59, 130, 196, 0.14);
}

body::after {
  width: 430px;
  height: 430px;

  right: -190px;
  bottom: -210px;

  background: rgba(90, 169, 214, 0.12);
}

/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {
  position: relative;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   AUTH ALERT
========================================================= */

.auth-alert {
  position: fixed;

  top: 18px;
  left: 50%;

  width: min(720px, calc(100% - 40px));

  min-height: 64px;

  transform: translate(-50%, -120%);

  display: flex;
  align-items: center;

  gap: 13px;

  padding: 10px 13px;

  background: rgba(255, 255, 255, 0.94);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(224, 82, 82, 0.16);

  border-left: 4px solid var(--color-danger);

  border-radius: var(--radius-md);

  box-shadow:
    0 15px 40px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.05);

  z-index: 9999;

  animation: auth-alert-show 0.45s var(--cubic-timing) forwards;
}

@keyframes auth-alert-show {
  from {
    opacity: 0;
    transform: translate(-50%, -120%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.auth-alert-icon {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-sm);

  color: var(--color-danger);

  background: var(--color-danger-bg);

  font-size: 17px;
}

.auth-alert-content {
  min-width: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.auth-alert-content strong {
  color: var(--color-text-primary);

  font-size: 13px;
  font-weight: 700;
}

.auth-alert-content span {
  color: var(--color-text-secondary);

  font-size: 12px;

  line-height: 1.4;

  overflow-wrap: anywhere;
}

.auth-alert-close {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;

  border-radius: var(--radius-sm);

  background: transparent;

  color: var(--color-text-muted);

  cursor: pointer;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.auth-alert-close:hover {
  color: var(--color-danger);

  background: var(--color-danger-bg);

  transform: scale(1.05);
}

/* =========================================================
   AUTH CONTAINER
========================================================= */

.auth-container {
  position: relative;
  width: min(100%, 1100px);

  height: 730px;
  background: rgba(255, 255, 255, 0.82);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.85);

  border-radius: var(--radius-xl);

  overflow: hidden;

  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.1),
    0 8px 25px rgba(59, 130, 196, 0.06);
}

/* =========================================================
   AUTH BOX
========================================================= */

.auth-box {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

/* =========================================================
   PANEL
========================================================= */

.panel {
  position: absolute;

  top: 0;

  width: 50%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 52px;

  background: rgba(255, 255, 255, 0.6);

  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.login-panel {
  left: 0;
}
.login-panel .form-content {
  max-width: 360px;
}

.login-panel .auth-heading {
  margin-bottom: 28px;
}

.register-panel {
  right: 0;
}
.login-panel .form-content {
  max-width: 360px;
}

.login-panel .auth-heading {
  margin-bottom: 28px;
}

/* =========================================================
   FORM CONTENT
========================================================= */

.form-content {
  width: 100%;
  max-width: 360px;
}

.form-content form {
  width: 100%;
}

/* =========================================================
   HEADING
========================================================= */

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading-small {
  display: block;

  margin-bottom: 6px;

  color: var(--color-primary);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.8px;

  text-transform: uppercase;
}

.auth-heading h2 {
  margin: 0 0 7px;

  color: var(--color-text-primary);

  font-size: 30px;
  font-weight: 700;

  line-height: 1.15;

  letter-spacing: -0.6px;
}

.auth-heading p {
  color: var(--color-text-secondary);

  font-size: 12px;

  line-height: 1.5;
}

/* =========================================================
   FORM CONTROL
========================================================= */

.form-control {
  width: 100%;

  margin-bottom: 14px;

  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  background: transparent !important;

  border: none !important;
}

.register-panel .form-control {
  margin-bottom: 10px;
}
/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {
  position: relative;

  width: 100%;

  min-height: 54px;

  border-radius: var(--radius-md);
}
.input-hint {
  position: absolute;

  left: 47px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--color-text-muted);
  font-size: 13px;

  pointer-events: none;

  opacity: 0;

  transition: opacity var(--transition-fast);
}

.input-group.input-empty:focus-within .input-hint {
  opacity: 1;
}
/* =========================================================
   INPUT
========================================================= */

.input-group input {
  display: block;

  width: 100%;
  height: 54px;

  padding: 14px 45px;

  background: rgba(248, 250, 252, 0.82);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-md) !important;

  outline: none;

  color: var(--color-text-primary);

  font-family: inherit;
  font-size: 13px;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Hover */

.input-group input:hover {
  border-color: rgba(59, 130, 196, 0.35);
}

/* Focus */

.input-group input:focus {
  background: var(--color-white);

  border-color: var(--color-primary);

  box-shadow:
    0 0 0 4px rgba(59, 130, 196, 0.08),
    0 5px 15px rgba(59, 130, 196, 0.05);
}

/* =========================================================
   INPUT ICON
========================================================= */

.input-group .input-icon {
  position: absolute;

  left: 16px;
  top: 50%;

  width: 18px;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-muted);

  font-size: 15px;

  pointer-events: none;

  z-index: 2;

  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.input-group input:focus ~ .input-icon {
  color: var(--color-primary);

  transform: translateY(-50%) scale(1.05);
}

/* =========================================================
   FLOATING LABEL
========================================================= */

.input-group label {
  position: absolute;

  left: 45px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--color-text-secondary);

  font-size: 13px;

  pointer-events: none;

  transition:
    top var(--transition-fast),
    left var(--transition-fast),
    font-size var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

/* Floating */

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0;

  left: 35px;

  padding: 0 7px;

  background: var(--color-white);

  color: var(--color-primary);

  font-size: 11px;

  font-weight: 700;

  border-radius: 5px;
}

/* =========================================================
   CHECK ICON
========================================================= */

.input-group .check-icon {
  position: absolute;

  right: 16px;
  left: auto !important;

  top: 50%;

  transform: translateY(-50%);

  display: none;

  width: 18px;

  color: var(--color-success);

  font-size: 16px;

  z-index: 4;

  pointer-events: none;
}

/* =========================================================
   ERROR TEXT
========================================================= */

.error-text {
  min-height: 14px;

  display: block;

  margin: 4px 4px 0;

  color: var(--color-danger);

  font-size: 10px;
  font-weight: 500;

  line-height: 1.3;
}

/* =========================================================
   LOGIN QR
========================================================= */

.login-qr-option {
  width: 100%;

  margin-top: 18px;
}

/* =========================================================
   QR LOGIN
========================================================= */

.auth-divider {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 12px;

  margin: 18px 0 14px;

  color: #94a3b8;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: var(--color-border);
}

/* =========================================================
   QR BUTTON
========================================================= */

.btn-qr-login {
  width: 100%;
  height: 54px;

  padding: 0 18px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border: 1px solid #dfe5eb;
  border-radius: var(--radius-lg);

  background: rgba(255, 255, 255, 0.8);

  color: var(--color-text-primary);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-qr-login .qr-icon {
  justify-self: start;

  color: var(--color-primary);

  font-size: 18px;
}

.btn-qr-login span {
  justify-self: center;
}

.btn-qr-login .qr-arrow {
  justify-self: end;

  color: var(--color-primary);

  font-size: 16px;

  transition: transform var(--transition-fast);
}

.btn-qr-login:hover {
  border-color: rgba(59, 130, 196, 0.35);

  background: var(--color-primary-light);

  box-shadow: 0 6px 18px rgba(59, 130, 196, 0.08);

  transform: translateY(-1px);
}

.btn-qr-login:hover .qr-arrow {
  transform: translateX(4px);
}
/* =========================================================
   REGISTER OPTIONS
========================================================= */

.register-options {
  margin-top: 2px;
  margin-bottom: 20px;
}

.check-agree {
  display: flex;
  align-items: flex-start;

  gap: 8px;

  color: var(--color-text-secondary);

  font-size: 11px;

  line-height: 1.5;

  cursor: pointer;
}

.check-agree input {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  margin-top: 1px;

  accent-color: var(--color-primary);

  cursor: pointer;
}

.check-agree a {
  color: var(--color-primary);

  font-weight: 600;

  text-decoration: none;
}

.check-agree a:hover {
  text-decoration: underline;
}

/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-login {
  width: 100%;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border: none;

  border-radius: var(--radius-md);

  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );

  color: var(--color-white);

  font-family: inherit;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(59, 130, 196, 0.2);

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-login i {
  font-size: 12px;

  transition: transform var(--transition-fast);
}

.btn-login:hover {
  filter: brightness(1.04);

  transform: translateY(-2px);

  box-shadow: 0 12px 26px rgba(59, 130, 196, 0.26);
}

.btn-login:hover i {
  transform: translateX(3px);
}

.btn-login:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   PASSWORD METER
========================================================= */

.password-meter-container {
  width: 100%;

  margin-top: 6px;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.meter-bar-wrapper {
  display: flex;

  width: 100%;

  gap: 4px;
}

.meter-bar {
  flex: 1;

  height: 4px;

  background: #e2e8f0;

  border-radius: 10px;

  transition: background-color var(--transition-fast);
}

.meter-text-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  color: var(--color-text-muted);

  font-size: 9px;
}
.meter-text-row b {
  color: var(--color-text-secondary);
}

.length-tip {
  color: var(--color-text-muted);

  white-space: nowrap;
}

.low .meter-bar:nth-child(1) {
  background: var(--color-danger);
}

.medium .meter-bar:nth-child(1),
.medium .meter-bar:nth-child(2) {
  background: var(--color-warning);
}

.high .meter-bar {
  background: var(--color-success);
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay-quad {
  position: absolute;

  top: 0;
  left: 0;

  width: 52%;
  height: 100%;

  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px;

  color: var(--color-white);

  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );

  transform: translateX(92.5%) scale(1.02);

  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);

  transition:
    transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    clip-path 0.6s ease;
}

/* =========================================================
   OVERLAY DECORATION
========================================================= */

.overlay-quad::before {
  content: "";

  position: absolute;

  width: 290px;
  height: 290px;

  top: -110px;
  right: -90px;

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 50%;
}

.overlay-quad::after {
  content: "";

  position: absolute;

  width: 210px;
  height: 210px;

  bottom: -100px;
  left: -70px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 50%;
}

/* =========================================================
   OVERLAY CONTENT
========================================================= */

.overlay-content {
  position: relative;

  z-index: 2;

  max-width: 330px;

  text-align: center;
}

.overlay-label {
  display: block;

  margin-bottom: 14px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 2px;
}

.overlay-content h3 {
  margin-bottom: 15px;

  color: var(--color-white);

  font-size: 34px;
  font-weight: 700;

  line-height: 1.15;

  letter-spacing: -0.5px;
}

.overlay-content p {
  margin-bottom: 25px;

  color: rgba(255, 255, 255, 0.76);

  font-size: 13px;

  line-height: 1.6;
}

/* =========================================================
   TOGGLE BUTTON
========================================================= */

.btn-toggle {
  height: 44px;

  padding: 0 24px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 1px solid rgba(255, 255, 255, 0.75);

  border-radius: var(--radius-md);

  background: rgba(255, 255, 255, 0.08);

  color: var(--color-white);

  font-family: inherit;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  backdrop-filter: blur(5px);

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-toggle:hover {
  background: var(--color-white);

  color: var(--color-primary);

  transform: translateY(-2px);
}

/* =========================================================
   REGISTER STATE
========================================================= */

.auth-container.show-register .overlay-quad {
  transform: translateX(0) scale(1.02);

  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.overlay-quad .register-text {
  display: none;
}

.overlay-quad .login-text {
  display: block;
}

.auth-container.show-register .overlay-quad .register-text {
  display: block;
}

.auth-container.show-register .overlay-quad .login-text {
  display: none;
}

/* =========================================================
   MOBILE SWITCH
========================================================= */

.mobile-switch {
  display: none;

  margin-top: 20px;

  text-align: center;

  color: var(--color-text-secondary);

  font-size: 12px;
}

.mobile-switch a {
  color: var(--color-primary);

  font-weight: 700;

  text-decoration: none;
}
/* =========================================================
   REGISTER SELECT
========================================================= */

.input-group.select-group {
  position: relative;
  width: 100%;
  min-height: 54px;
}

/* =========================================================
   SELECT
========================================================= */

.input-group.select-group select {
  display: block;

  width: 100%;
  height: 54px;

  padding: 14px 42px 14px 45px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(248, 250, 252, 0.82);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md) !important;

  outline: none;

  color: transparent;

  font-family: inherit;
  font-size: 13px;
  font-weight: 400;

  cursor: pointer;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

/* =========================================================
   SELECT HOVER
========================================================= */

.input-group.select-group select:hover:not(:disabled) {
  border-color: rgba(59, 130, 196, 0.35);
}

/* =========================================================
   SELECT FOCUS
========================================================= */

.input-group.select-group select:focus {
  background: var(--color-white);

  border-color: var(--color-primary);
  color: var(--color-text-secondary);

  box-shadow:
    0 0 0 4px rgba(59, 130, 196, 0.08),
    0 5px 15px rgba(59, 130, 196, 0.05);
}

/* =========================================================
   ĐÃ CHỌN
========================================================= */

.input-group.select-group select:valid {
  color: var(--color-text-primary);
}

/* =========================================================
   OPTION
========================================================= */

.input-group.select-group select option {
  background: var(--color-white);

  color: var(--color-text-primary);

  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.input-group.select-group select option[value=""] {
    color: var(--color-text-secondary);
}

/* =========================================================
   FLOATING LABEL
========================================================= */

.input-group.select-group label {
    position: absolute;

    left: 45px;
    top: 50%;

    transform: translateY(-50%);

    color: #71829d;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;

    pointer-events: none;

    z-index: 3;

    transition:
        top var(--transition-fast),
        left var(--transition-fast),
        transform var(--transition-fast),
        font-size var(--transition-fast),
        font-weight var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast);
}

/* =========================================================
   FOCUS -> FLOATING LABEL
========================================================= */
.input-group.select-group:focus-within label,
.input-group.select-group select:valid ~ label {
    top: 0;

    left: 35px;

    transform: translateY(-50%);

    padding: 0 7px;

    background: var(--color-white);

    border-radius: 5px;

    color: var(--color-primary);

    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   DISABLED
========================================================= */

.input-group.select-group select:disabled {
  background: #f8fafc;

  color: #94a3b8;

  border-color: var(--color-border);

  cursor: not-allowed;

  opacity: 1;
}

/* =========================================================
   DISABLED LABEL
========================================================= */

.input-group.select-group select:disabled ~ label {
  color: var(--color-text-muted);
}

/* =========================================================
   ICON
========================================================= */
.input-group.select-group .input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    width: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: var(--color-text-muted);

    font-size: 14px;

    pointer-events: none;

    z-index: 4;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

/* =========================================================
   ICON FOCUS
========================================================= */

.input-group.select-group:focus-within .input-icon {
  color: var(--color-primary);

  transform: translateY(-50%) scale(1.05);
}

/* =========================================================
   ARROW
========================================================= */

.input-group.select-group::after {
  content: "";

  position: absolute;

  top: 50%;
  right: 17px;

  width: 7px;
  height: 7px;

  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);

  transform: translateY(-65%) rotate(45deg);

  pointer-events: none;

  z-index: 4;

  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

/* =========================================================
   ARROW FOCUS
========================================================= */

.input-group.select-group:focus-within::after {
  border-color: var(--color-primary);

  transform: translateY(-25%) rotate(225deg);
}
.input-group.select-group select:disabled {
    background: #f8fafc;

    color: transparent;

    border-color: var(--color-border);

    cursor: not-allowed;

    opacity: 1;
}
/* =========================================================
   DISABLED ARROW
========================================================= */
.input-group.select-group select:disabled ~ label {
    color: #94a3b8;
}
.input-group.select-group select:disabled ~ label::after {
  display: none;
}

/* =========================================================
   DISABLED GROUP
========================================================= */

.input-group.select-group:has(select:disabled)::after {
  border-color: #cbd5e1;
}
.input-group.select-group:has(select:disabled) .input-icon {
    color: #9aabc4;
}
/* =========================================================
   ERROR
========================================================= */

.input-group.select-group select.input-error {
  border-color: var(--color-danger);

  background: var(--color-danger-bg);
}

.input-group.select-group select.input-error:focus {
  border-color: var(--color-danger);

  box-shadow:
    0 0 0 4px rgba(224, 82, 82, 0.08),
    0 5px 15px rgba(224, 82, 82, 0.05);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  .input-group.select-group {
    min-height: 52px;
  }

  .input-group.select-group select {
    height: 52px;

    padding-left: 42px;
    padding-right: 40px;

    font-size: 12.5px;
  }

  .input-group.select-group label {
    left: 42px;

    font-size: 12.5px;
  }

  .input-group.select-group:focus-within label,
  .input-group.select-group select:valid ~ label {
    left: 32px;

    font-size: 9.5px;
  }

  .input-group.select-group .input-icon {
    left: 15px;

    font-size: 13px;
  }

  .input-group.select-group::after {
    right: 15px;

    width: 6px;
    height: 6px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479px) {
  .input-group.select-group {
    min-height: 52px;
  }

  .input-group.select-group select {
    height: 52px;

    padding-left: 42px;
    padding-right: 38px;

    font-size: 12px;
  }

  .input-group.select-group label {
    left: 42px;

    font-size: 12px;
  }

  .input-group.select-group:focus-within label,
  .input-group.select-group select:valid ~ label {
    left: 32px;

    font-size: 9px;
  }

  .input-group.select-group .input-icon {
    left: 15px;

    font-size: 12.5px;
  }

  .input-group.select-group::after {
    right: 14px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {
  body {
    padding: 20px;
  }

  .auth-container {
    max-width: 760px;

    height: 560px;
  }

  .panel {
    padding: 30px;
  }

  .form-content {
    max-width: 300px;
  }

  .auth-heading h2 {
    font-size: 28px;
  }

  .overlay-content h3 {
    font-size: 28px;
  }

  .overlay-quad {
    width: 55%;

    transform: translateX(82%) scale(1.02);
  }

  .auth-container.show-register .overlay-quad {
    transform: translateX(0) scale(1.02);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  body {
    min-height: 100vh;

    padding: 20px;
  }

  .auth-container {
    width: 100%;

    max-width: 430px;

    height: auto;

    min-height: 660px;

    border-radius: var(--radius-xl);
  }

  .auth-box {
    position: relative;

    height: auto;
  }

  .panel {
    position: relative;

    width: 100%;

    min-height: 660px;

    padding: 42px 28px;

    background: rgba(255, 255, 255, 0.72);
  }

  .login-panel {
    left: auto;
  }

  .register-panel {
    right: auto;

    display: none;
  }

  .auth-container.show-register .login-panel {
    display: none;
  }

  .auth-container.show-register .register-panel {
    display: flex;
  }

  .overlay-quad {
    display: none;
  }

  .form-content {
    max-width: 100%;
  }

  .mobile-switch {
    display: block;
  }

  .auth-heading {
    margin-bottom: 28px;
  }

  .auth-heading h2 {
    font-size: 28px;
  }

  .auth-alert {
    top: 12px;

    width: calc(100% - 24px);
  }

  .auth-alert-content span {
    white-space: normal;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479px) {
  body {
    padding: 12px;
  }

  .auth-container {
    min-height: 640px;

    border-radius: var(--radius-lg);
  }

  .panel {
    min-height: 640px;

    padding: 35px 20px;
  }

  .auth-heading-small {
    font-size: 9px;

    letter-spacing: 1.6px;
  }

  .auth-heading h2 {
    font-size: 26px;
  }

  .auth-heading p {
    font-size: 12px;
  }

  .input-group input {
    height: 52px;

    font-size: 13px;
  }

  .input-group label {
    font-size: 13px;
  }

  .input-group input:focus ~ label,
  .input-group input:not(:placeholder-shown) ~ label {
    font-size: 10px;
  }

  .btn-login {
    height: 50px;
  }

  .btn-qr-login {
    height: 45px;
  }

  .meter-text-row {
    font-size: 9px;
  }

  .length-tip {
    font-size: 9px;
  }

  .auth-alert {
    width: calc(100% - 20px);

    padding: 9px 10px;
  }

  .auth-alert-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;

    font-size: 15px;
  }

  .auth-alert-content strong {
    font-size: 12px;
  }

  .auth-alert-content span {
    font-size: 11px;
  }
}
/* =========================================================
   ADMIN REGISTER
========================================================= */

.auth-container-admin {
  position: relative;

  width: min(100%, 620px);
  min-height: 650px;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 0;

  background: rgba(255, 255, 255, 0.86);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.9);

  border-radius: var(--radius-xl);

  overflow: hidden;

  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.1),
    0 8px 25px rgba(59, 130, 196, 0.06);
}

/* =========================================================
   ADMIN PANEL
========================================================= */

.auth-container-admin > .panel {
  position: relative;

  inset: auto;

  width: 100%;
  height: auto;

  min-height: 550px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 45px 70px;

  background: transparent;

  transform: none !important;
}

/* =========================================================
   ADMIN FORM CONTENT
========================================================= */

.auth-container-admin .form-content {
  width: 100%;
  max-width: 430px;

  margin: 0 auto;
}

/* =========================================================
   ADMIN HEADING
========================================================= */

.auth-container-admin .auth-heading {
  margin-bottom: 30px;

  text-align: center;
}

.auth-container-admin .auth-heading-small {
  margin-bottom: 8px;

  font-size: 10px;

  letter-spacing: 2px;
}

.auth-container-admin .auth-heading h2 {
  margin-bottom: 9px;

  font-size: 30px;
  line-height: 1.15;
}

.auth-container-admin .auth-heading p {
  max-width: 340px;

  margin: 0 auto;

  font-size: 12px;

  line-height: 1.6;
}

/* =========================================================
   ADMIN FORM
========================================================= */

.auth-container-admin form {
  width: 100%;
}

/* =========================================================
   ADMIN FORM CONTROL
========================================================= */

.auth-container-admin .form-control {
  margin-bottom: 14px;
}

/* =========================================================
   ADMIN INPUT
========================================================= */

.auth-container-admin .input-group {
  min-height: 54px;
}

.auth-container-admin .input-group input {
  height: 54px;

  background: rgba(248, 250, 252, 0.88);
}

/* =========================================================
   ADMIN BUTTON
========================================================= */

.auth-container-admin .btn-login {
  height: 54px;

  margin-top: 8px;

  font-size: 13px;
}

/* =========================================================
   ADMIN PASSWORD METER
========================================================= */

.auth-container-admin .password-meter-container {
  margin-top: 7px;
}

/* =========================================================
   ADMIN ERROR
========================================================= */

.auth-container-admin .error-text {
  margin-top: 4px;
}

/* =========================================================
   ADMIN CHECK ICON
========================================================= */

.auth-container-admin .check-icon {
  right: 17px;
}

/* =========================================================
   ADMIN DECORATION
========================================================= */

.auth-container-admin::before {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  top: -120px;
  right: -90px;

  border-radius: 50%;

  background: rgba(59, 130, 196, 0.06);

  pointer-events: none;
}

.auth-container-admin::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  bottom: -110px;
  left: -80px;

  border-radius: 50%;

  background: rgba(90, 169, 214, 0.05);

  pointer-events: none;
}

/* =========================================================
   KEEP FORM ABOVE DECORATION
========================================================= */

.auth-container-admin > .panel,
.auth-container-admin .form-content {
  z-index: 2;
}

/* =========================================================
   ADMIN - TABLET
========================================================= */

@media (max-width: 767.98px) {
  .auth-container-admin {
    width: 100%;

    max-width: 500px;

    min-height: auto;

    padding: 0;

    border-radius: var(--radius-xl);
  }

  .auth-container-admin > .panel {
    min-height: auto;

    padding: 42px 38px;
  }

  .auth-container-admin .form-content {
    max-width: 100%;
  }

  .auth-container-admin .auth-heading {
    margin-bottom: 28px;
  }

  .auth-container-admin .auth-heading h2 {
    font-size: 28px;
  }
}

/* =========================================================
   ADMIN - SMALL MOBILE
========================================================= */

@media (max-width: 479px) {
  .auth-container-admin {
    border-radius: var(--radius-lg);
  }

  .auth-container-admin > .panel {
    padding: 35px 22px;
  }

  .auth-container-admin .auth-heading {
    margin-bottom: 25px;
  }

  .auth-container-admin .auth-heading-small {
    font-size: 9px;

    letter-spacing: 1.6px;
  }

  .auth-container-admin .auth-heading h2 {
    font-size: 26px;
  }

  .auth-container-admin .auth-heading p {
    font-size: 11px;
  }

  .auth-container-admin .input-group input {
    height: 52px;
  }

  .auth-container-admin .btn-login {
    height: 50px;
  }
}
