/* ============================================
   AUTHENTICATION PAGES STYLING
   ============================================ */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-page) 0%, var(--bg-item) 100%);
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 20px;
}


/* 
ANIMASI IKON "UNIQUE NEON TILT"
*/

@keyframes logoIconUnique {
  0% {
    color: #eb5070; /* Pink */
    transform: rotate(-15deg); /* Miring kiri */
    filter: drop-shadow(0 0 0px rgba(235, 80, 112, 0)); /* Tanpa bayangan */
  }
  50% {
    color: #0fb2a1; /* Cyan */
    transform: rotate(15deg); /* Miring kanan */
    /* Efek Glow/Cahaya yang kuat */
    filter: drop-shadow(0 0 12px rgba(15, 178, 161, 0.6)); 
  }
  100% {
    color: #eb5070; /* Pink kembali */
    transform: rotate(-15deg); /* Kembali miring kiri */
    filter: drop-shadow(0 0 0px rgba(235, 80, 112, 0));
  }
}

.auth-logo i {
  font-size: 28px;
  /* Terapkan animasi: durasi 4 detik agar lebih santai/elegan */
  animation: logoIconUnique 4s infinite ease-in-out;
}


.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.alert i {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Form Styling */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-item);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(17, 172, 156, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin: 8px 0 16px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-main);
}

.remember-me input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--blue-light);
}

/* Auth Button */
.btn-auth {
  padding: 12px 16px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 172, 156, 0.3);
}

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

.btn-auth i {
  font-size: 16px;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--blue-light);
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Light Mode Overrides */
body.light-mode .auth-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .alert-error {
  background: rgba(239, 68, 68, 0.05);
}

body.light-mode .alert-success {
  background: rgba(34, 197, 94, 0.05);
}

/* ============================================
   FIX LOGO WARNA (SESUAI TOPBAR)
   ============================================ */

.auth-logo .txt-next {
    color: #eb5070; /* Warna Pink */
    font-weight: 700;
}

.auth-logo .txt-forum {
    color: #0fb2a1; /* Warna Cyan */
    font-weight: 700;
}
