/* ──────────────────────────────────────────
   LOGIN PAGE — LABKESMAS
   Inspired by sinala.id/login
   Primary: #7C3BEC (violet-purple)
   Dark:    #1E0A3C
   Light:   #F5F3FF
────────────────────────────────────────── */

.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Background Shapes ── */
.login-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.login-shape-1 {
  width: 500px;
  height: 500px;
  background: #7C3BEC;
  top: -150px;
  right: -100px;
}

.login-shape-2 {
  width: 350px;
  height: 350px;
  background: #3b82f6;
  bottom: -80px;
  left: -60px;
}

.login-shape-3 {
  width: 200px;
  height: 200px;
  background: #7C3BEC;
  bottom: 30%;
  right: 5%;
}

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

.login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Card ── */
.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 59, 236, 0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 10px 30px -5px rgba(124, 59, 236, 0.08);
}

/* ── Header ── */
.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  margin-bottom: 1.25rem;
}

.login-logo-img {
  width: 90px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(124, 59, 236, 0.15);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e0a3c;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.login-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Body ── */
.login-card-body {
  margin-bottom: 1.5rem;
}

.login-field {
  margin-bottom: 1.25rem;
}

.login-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e0a3c;
  margin-bottom: 0.4rem;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 0.875rem;
  color: #9ca3af;
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 2;
}

.login-input {
  width: 100%;
  padding: 0.7rem 0.875rem 0.7rem 2.5rem;
  font-size: 0.9rem;
  color: #1e0a3c;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: #7C3BEC;
  box-shadow: 0 0 0 3px rgba(124, 59, 236, 0.12);
}

.login-input.is-invalid {
  border-color: #ef4444;
}

.login-input::placeholder {
  color: #9ca3af;
}

/* ── Captcha ── */
.login-captcha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f3ff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.6rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-captcha:focus-within {
  border-color: #7C3BEC;
  box-shadow: 0 0 0 3px rgba(124, 59, 236, 0.12);
}

.login-captcha-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e0a3c;
  min-width: 60px;
  text-align: center;
  letter-spacing: 0.05em;
}

.login-captcha-eq {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280;
}

.login-captcha-input {
  width: 70px;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-captcha-input:focus {
  border-color: #7C3BEC;
  box-shadow: 0 0 0 3px rgba(124, 59, 236, 0.12);
}

.login-caption {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* ── Error ── */
.login-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* ── Button ── */
.login-btn {
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7C3BEC 0%, #6d28d9 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 59, 236, 0.3);
}

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

.login-btn-icon {
  font-size: 0.85rem;
}

/* ── Footer ── */
.login-card-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.25rem;
}

.login-footer-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.login-footer-icon {
  margin-right: 0.3rem;
  color: #7C3BEC;
  opacity: 0.6;
}

.login-bottom-text {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .login-captcha-question {
    font-size: 1rem;
    min-width: 50px;
  }
}
