/* ============================================
   Login Page - Clean Minimalist Elegant
   Primary: #4080fe | Neutral: #ffffff
   ============================================ */

:root {
  --primary: #4080fe;
  --primary-hover: #3570e0;
  --primary-light: rgba(64, 128, 254, 0.08);
  --primary-ring: rgba(64, 128, 254, 0.18);
  --neutral: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #8c94a7;
  --border: #e5e7eb;
  --bg: #ffffff;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

/* ===== Page Shell ===== */
.login-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ===== Card (Container pembungkus) ===== */
.login-form-card {
  width: 100%;
  max-width: 400px;
  background: #dbe5fb;
  border: 1px solid rgba(64, 128, 254, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  padding: 40px 32px;
  box-sizing: border-box;
}

.login-form-inner {
  width: 100%;
}

/* ===== Brand ===== */
.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand img {
  height: 40px;
  width: auto;
}

/* ===== Headline ===== */
.login-headline {
  text-align: center;
  margin-bottom: 32px;
}

.login-headline h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.login-headline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Form ===== */
.input-group-modern {
  display: grid;
  gap: 18px;
}

.group {
  position: relative;
}

.input-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.input-shell {
  position: relative;
}

.input-group-modern input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--neutral);
  padding: 0 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-modern input::placeholder {
  color: var(--text-muted);
}

.input-group-modern input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* ===== Password Toggle ===== */
.password-wrapper {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

/* ===== Button ===== */
#loginButton.btn-modern {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--neutral);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

#loginButton.btn-modern:hover {
  background: var(--primary-hover);
}

#loginButton.btn-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-ring);
}

#loginButton.btn-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Register Link ===== */
.register-link-container {
  margin-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.register-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 639.98px) {
  .login-page-shell {
    padding: 16px;
  }

  .login-form-card {
    padding: 32px 24px;
  }

  .login-headline h1 {
    font-size: 1.4rem;
  }

  .login-headline p {
    font-size: 0.85rem;
  }
}
