/*
 * ═══════════════════════════════════════════════════════════════
 *  LaSystems Admin — Login Page Styles
 * ═══════════════════════════════════════════════════════════════
 */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ──────── WRAPPER ──────── */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
}

/* ──────── CARD ──────── */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeScale 0.3s ease-out;
}

/* ──────── LOCK ICON ──────── */
.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow:
    0 4px 16px rgba(14, 165, 233, 0.3),
    0 0 24px rgba(14, 165, 233, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

.login-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent 60%);
  z-index: -1;
  filter: blur(8px);
}

.login-icon__svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

/* ──────── TITLE ──────── */
.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.375rem;
}

.login-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ──────── FORM ──────── */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Error message */
.login-error {
  display: none;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
  animation: fadeIn 0.2s ease-out;
}

.login-error.visible {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Input wrapper */
.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 1;
}

.login-input {
  padding-left: 2.75rem !important;
}

/* ──────── SUBMIT BUTTON ──────── */
.login-btn {
  width: 100%;
  position: relative;
  font-size: 0.875rem;
  padding: 0.8125rem 1.5rem;
  margin-top: 0.25rem;
}

.login-btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.login-btn:hover .login-btn-arrow {
  transform: translateX(3px);
}

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

.login-btn.loading .login-btn-arrow { display: none; }
.login-btn.loading #login-btn-text { opacity: 0.6; }
.login-btn.loading .login-spinner { display: block; }

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

/* ──────── FOOTER ──────── */
.login-footer {
  margin-top: 2rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ──────── RESPONSIVE ──────── */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem 1.5rem;
  }
}
