/* ======================================================
   KUWAK MEMBER AUTH CSS
   Untuk page login / activation / setup password ahli
====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #8b2c8f;
  --secondary: #e6007e;
  --accent: #b83280;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #eaddec;
  --bg-soft: #faf5fb;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #047857;
  --shadow: 0 22px 70px rgba(139, 44, 143, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 44, 143, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(230, 0, 126, 0.12), transparent 30%),
    linear-gradient(135deg, #fbf5ff 0%, #fff7fc 45%, #ffffff 100%);
  display: grid;
  place-items: center;
  padding: 28px 18px;
  overflow-x: hidden;
}

.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  padding: 38px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.auth-top {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(139, 44, 143, 0.25);
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.auth-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.auth-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
  font-weight: 800;
}

.auth-card p {
  margin: 10px auto 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-alert {
  padding: 13px 15px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.auth-alert.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.auth-form-group input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: #f9fafb;
  color: var(--text);
  transition: 0.2s ease;
}

.auth-form-group input::placeholder {
  color: #9ca3af;
}

.auth-form-group input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 44, 143, 0.10);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 86px;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: #f3e8f6;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 17px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #7e22ce, var(--secondary));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: 0.2s ease;
  box-shadow: 0 14px 28px rgba(139, 44, 143, 0.22);
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(139, 44, 143, 0.28);
}

.auth-help {
  margin-top: 22px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #fbf5ff;
  border: 1px solid #eaddec;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.auth-help a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1e8f3;
  text-align: center;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.auth-back-link:hover {
  color: var(--secondary);
}

.auth-copy {
  margin-top: 16px;
  font-size: 11px;
  color: #9ca3af;
}

/* Untuk page lama yang masih guna .auth-brand */
.auth-brand {
  color: var(--primary);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  body {
    padding: 18px;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .auth-card h1 {
    font-size: 26px;
  }

  .auth-logo {
    width: 58px;
    height: 58px;
  }
}