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

html,
body {
  height: 100%;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  background: var(--xox-gray-light);
  color: var(--xox-charcoal);
  -webkit-font-smoothing: antialiased;
}
:root {
  --xox-pink: #e8185a;
  --xox-pink-soft: #f7739a;
  --xox-pink-deep: #c2185b;
  --xox-pink-light: #fbe9ef;

  --xox-dark: #222222;
  --xox-charcoal: #4a4a4a;
  --xox-gray-mid: #7a7a7a;
  --xox-gray-light: #f2f2f2;
  --xox-white: #ffffff;

  --xox-success: #2ecc71;
  --xox-warning: #f39c12;
  --xox-danger: #e74c3c;
  --xox-info: #3498db;

  --sidebar-width: 200px;
  --topbar-height: 52px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

.login-screen {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left-panel {
  flex: 1;
  background: var(--xox-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  background: var(--xox-white);
  border: 0.5px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
}

.login-header {
  margin-bottom: 24px;

  h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--xox-dark);
    margin-bottom: 4px;
  }

  p {
    font-size: 13px;
    color: var(--xox-gray-mid);
  }
}

.error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fde8e8;
  color: #a32d2d;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.error-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a32d2d;
  flex-shrink: 0;
}

.field {
  margin-bottom: 18px;

  label {
    display: block;
    font-size: 11px;
    color: var(--xox-gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
  }

  input {
    width: 100%;
    padding: 10px 14px;
    border: 0.5px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--xox-charcoal);
    background: #fafafa;
    outline: none;
    transition:
      border-color 0.15s,
      background 0.15s;

    &:focus {
      border-color: var(--xox-pink);
      background: var(--xox-white);
    }

    &:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
  }
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.forgot {
  font-size: 11px;
  color: var(--xox-pink);
  cursor: pointer;

  &:hover {
    color: var(--xox-pink-deep);
  }
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--xox-pink);
  color: var(--xox-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition:
    background 0.2s,
    transform 0.1s;

  &:hover:not(:disabled) {
    background: var(--xox-pink-deep);
  }

  &:active:not(:disabled) {
    transform: scale(0.98);
  }

  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: #ccc;

  span {
    color: var(--xox-pink);
  }
}

.right-panel {
  width: 42%;
  background: var(--xox-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  gap: 20px;
}

.logo-wrap {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1.5px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 164px;
  height: 164px;
  object-fit: cover;
}

.brand {
  text-align: center;
}
.brand-name {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
}

.brand-dot {
  color: var(--xox-pink);
}

.brand-sub {
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.brand-divider {
  width: 40px;
  height: 0.5px;
  background: #3a3a3a;
}

.tagline {
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.8;
}

.version-tag {
  font-size: 10px;
  color: #444;
  border: 0.5px solid #333;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 4px;
}
