/* ════════════════════════════════════════════
   login_style.css — Ideamart Dashboard Login
   ════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Page Background ───────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-xdark, #1e1b4b) 0%, var(--color-primary, #4f46e5) 55%, var(--color-accent, #7c3aed) 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.login-page::before {
  width: 380px;
  height: 380px;
  background: var(--color-accent-light, #a5b4fc);
  top: -120px;
  left: -100px;
}

.login-page::after {
  width: 320px;
  height: 320px;
  background: var(--color-primary-light, #c7d2fe);
  bottom: -100px;
  right: -80px;
}

/* ─── Glass Card ─────────────────────────────── */
.login-glass-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: card-appear 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@media (max-width: 576px) {
  .login-page {
    padding: 0;
    align-items: flex-end;
  }

  .login-glass-card {
    max-width: 100%;
    border-radius: 32px 32px 0 0;
    border-bottom: none;
    padding: 44px 28px 56px;
  }
}

/* ─── Brand ──────────────────────────────────── */
.brand-logo-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.logo-glass-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.logo-glass-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--color-primary, #4f46e5);
}

.login-title-glass {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.login-sub-glass {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─── Form ───────────────────────────────────── */
.glass-form-group {
  margin-bottom: 22px;
  text-align: left;
}

.glass-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  display: block;
}

.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* ─── Button ─────────────────────────────────── */
.glass-login-btn {
  width: 100%;
  padding: 17px;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary, #4f46e5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.glass-login-btn:active {
  transform: translateY(0);
}

.glass-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Loading Spinner ────────────────────────── */
.login-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--color-primary, #4f46e5);
  border-radius: 50%;
  display: inline-block;
  animation: login-spin 0.8s linear infinite;
}

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

.login-loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
