/* ================================================
   AUTH BASE STYLES — Shared across all auth pages
   ================================================ */

.auth-section {
  min-height: 100vh;
  background: #081d3c;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background media & overlay */
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background: rgba(4, 18, 38, 0.65); /* simple dark overlay */
}

/* ================================================
   GLASSIFY CARD & ELEMENTS
   ================================================ */

.glass-card {
  width: 100%;
  /* max-width is defined in individual view CSS */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* Glassify Input Fields */
.glass-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

/* Glassify Button */
.glass-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.glass-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: auto; /* keep cursor visible */
}

/* Tombol outline — digunakan untuk aksi sekunder (misal: Kirim Ulang OTP) */
.glass-btn-outline {
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.55rem 1.5rem;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.glass-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

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

.glass-btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  color: rgba(255, 255, 255, 0.5);
}

/* Utilities */
.hover-white:hover {
  color: #fff !important;
}

.drop-shadow {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* ================================================
   GLASS TOAST NOTIFICATION (POPUP)
   ================================================ */

.glass-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 90%;
  max-width: 400px;
  pointer-events: none; /* Let clicks pass through empty container */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-toast {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(-150%);
  opacity: 0;
  /* Bouncy slide down like iOS/Android notifications */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: auto;
}

.glass-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.glass-toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.glass-toast-content {
  flex-grow: 1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Thematic colors for toasts */
.glass-toast.error {
  background: rgba(220, 53, 69, 0.25);
  border-color: rgba(220, 53, 69, 0.4);
}
.glass-toast.error .glass-toast-icon {
  color: #ff6b81;
}

.glass-toast.success {
  background: rgba(25, 135, 84, 0.25);
  border-color: rgba(25, 135, 84, 0.4);
}
.glass-toast.success .glass-toast-icon {
  color: #51cf66;
}

.glass-toast.info {
  background: rgba(13, 202, 240, 0.25);
  border-color: rgba(13, 202, 240, 0.4);
}
.glass-toast.info .glass-toast-icon {
  color: #339af0;
}

/* ================================================
   MOBILE RESPONSIVENESS
   ================================================ */
@media (max-width: 576px) {
  /* Scale down the card */
  .glass-card {
    padding: 1.25rem !important; /* override bootstrap p-4 */
    border-radius: 16px;
  }
  
  /* Scale down inputs and buttons */
  .glass-input, .glass-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Scale down toast notification */
  .glass-toast-container {
    top: 10px;
    width: 92%;
  }
  .glass-toast {
    padding: 12px 15px;
    border-radius: 12px;
    gap: 10px;
  }
  .glass-toast-icon {
    font-size: 1.2rem;
  }
  .glass-toast-content {
    font-size: 0.85rem;
  }
  
  /* Adjust typography in card */
  .glass-card h4 {
    font-size: 1.25rem;
  }
  .glass-card p {
    font-size: 0.8rem !important;
  }
}
