/* =====================================================
   LOGIN ADMIN
===================================================== */
body.auth-locked .fx-sidebar,
body.auth-locked .fx-toggle-floating,
body.auth-locked .fx-header,
body.auth-locked .fx-bottom-nav,
body.auth-locked .fx-topbar {
  display: none !important;
}

body.auth-locked .fx-main {
  width: 100% !important;
  margin-left: 0 !important;
}

body.auth-locked .fx-container {
  min-height: 100vh;
  padding: 0;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(180, 139, 92, 0.14), transparent 34%),
    linear-gradient(145deg, #d1cbbd 0%, #ccc2af 48%, #d1d0cf 100%);
}

.login-panel {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 250, 239, 0.94);
  border: 1px solid #ead8b6;
  border-radius: 10px;
  padding: 30px;
  box-shadow:
    0 24px 55px rgba(92, 61, 32, 0.18),
    0 4px 12px rgba(92, 61, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(8px);
  animation: loginPanelIn 420ms ease forwards;
}

.login-logo {
  display: block;
  max-width: 170px;
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.login-field label {
  font-size: 13px;
  font-weight: 600;
  color: #806349;
}

.login-field input {
  min-height: 42px;
  border: 1px solid #a79a86;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #99887b;
  background: #fffaf0;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-field input:focus {
  border-color: #9b6a38;
  box-shadow: 0 0 0 3px rgba(155, 106, 56, 0.16);
  transform: translateY(-1px);
}

.login-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #8a5a2b, #695039);
  color: #fff8e8;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(92, 61, 32, 0.20);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(92, 61, 32, 0.24);
  filter: brightness(1.03);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(92, 61, 32, 0.18);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.login-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #9f321d;
  font-size: 13px;
  text-align: center;
}

.loading-panel {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: rgba(255, 250, 239, 0.78);
  border: 1px solid #ead8b6;
  border-radius: 10px;
  padding: 30px 34px;
  box-shadow:
    0 24px 55px rgba(92, 61, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: loginPanelIn 300ms ease forwards;
}

.loading-wheel {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 5px solid #ead8b6;
  border-top-color: #6b4423;
  border-right-color: #9b6a38;
  animation: loadingSpin 850ms linear infinite;
  box-shadow: 0 8px 18px rgba(92, 61, 32, 0.16);
}

.loading-brand {
  color: #5c3d20;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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