/* ============================================================
   emtulearning — Auth Pages (Login & Register)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- Google Login Button --- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.btn-google:hover {
  border-color: #4285F4;
  background: #f8f9ff;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
  transform: translateY(-1px);
}


.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

/* --- Left Panel (branding) --- */
.auth-left {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: var(--yellow);
  border-radius: 50%;
  bottom: -160px; left: -120px;
  opacity: 0.15;
}

.auth-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: var(--yellow);
  border-radius: 50%;
  top: -60px; right: -60px;
  opacity: 0.1;
}

.auth-brand {
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.auth-logo span {
  color: var(--yellow);
}

.auth-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

.auth-illustration {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.auth-feature-list {
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-feature-item i {
  width: 32px; height: 32px;
  background: rgba(255, 214, 0, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* --- Right Panel (form) --- */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.375rem;
}

.auth-form-header p {
  font-size: 0.9375rem;
  color: var(--gray);
}

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.role-option input[type="radio"] { display: none; }

.role-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.role-option label i {
  font-size: 1.5rem;
  color: var(--gray-mid);
  transition: color var(--transition);
}

.role-option input[type="radio"]:checked + label {
  border-color: var(--yellow);
  background: var(--yellow-light);
  color: var(--black);
}

.role-option input[type="radio"]:checked + label i {
  color: var(--black);
}

/* Divider dengan teks */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--gray-mid);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

/* Link di bawah form */
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.auth-footer-link a {
  color: var(--black);
  font-weight: 600;
  border-bottom: 2px solid var(--yellow);
}

.auth-footer-link a:hover { color: var(--gray-dark); }

/* Password toggle */
.input-with-icon {
  position: relative;
}

.input-with-icon .form-control { padding-right: 2.75rem; }

.input-icon-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-mid);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}

.input-icon-btn:hover { color: var(--black); }

/* ============================================================
   RESPONSIVE AUTH
   ============================================================ */
@media (max-width: 768px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-left {
    min-height: 220px;
    padding: 2rem;
  }

  .auth-feature-list { display: none; }

  .auth-illustration { display: none; }

  .auth-right { padding: 2rem 1.25rem; }
}
