/* ============================================================
   PAPA PV — Auth Pages (Login / Register)
   ============================================================ */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--sp-4);
  width: 100%;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 900px;
  width: 100%;
}

/* Left side - Form */
.auth-form-side {
  padding: var(--sp-12) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  margin-bottom: var(--sp-8);
  text-align: center;
}

.auth-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.auth-title {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
  text-align: center;
}

.auth-subtitle {
  font-size: var(--text-small);
  color: var(--gray-500);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.auth-form .form-label {
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.auth-form .form-input {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
}

.auth-form .form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form .btn {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-body);
  margin-top: var(--sp-2);
}

.auth-form-footer {
  text-align: center;
  font-size: var(--text-small);
  color: var(--gray-600);
  margin-top: var(--sp-6);
}

.auth-form-footer a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* Right side - Image */
.auth-image-side {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.auth-image-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.auth-image-content img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  margin-bottom: var(--sp-8);
}

.auth-image-text h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--sp-3);
  font-weight: var(--fw-bold);
}

.auth-image-text p {
  font-size: var(--text-body);
  opacity: 0.9;
  line-height: var(--lh-relaxed);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-image-side {
    display: none;
  }

  .auth-form-side {
    padding: var(--sp-8) var(--sp-6);
  }

  .auth-container {
    min-height: auto;
    padding: var(--sp-6);
  }
}
