/* Custom CSS for Login Page Redesign */

/* Common improvements */
.btn-modern {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(242, 168, 18, 0.3);
}

/* Desktop Styles */
@media (min-width: 1280px) {
  body {
    background-color: #f5f7fa !important;
    /* Soft Gray */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: block !important;
    /* Ensure body is block to stack sections */
  }

  /* RESET LAYOUT - Override any mobile wrapper flex behavior if present on body */
  /* If previous layout had flex on body or wrapper, we ensure sections stack naturally */

  /* HERO SECTION (WAJIB FULL WIDTH) */
  .login-hero {
    width: 100% !important;
    height: 45vh !important;
    position: relative !important;
    /* Blue Soft Gradient */
    background: linear-gradient(120deg, #94B4DE 0%, #66a6ff 100%) !important;
    padding-left: 0 !important;
    /* Remove fixed left padding */
    padding-right: 1500px !important;
    /* Add right padding for balance */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    /* Right aligned content container */
    color: white !important;
    box-sizing: border-box !important;
    /* Reset mobile styles */
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Decorative Circles for Hero */
  .login-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
  }

  .login-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    /* Moved circle to left for visual balance since content is right */
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
  }

  .login-hero-content {
    position: relative;
    z-index: 10;
    text-align: left !important;
    /* Text itself remains left aligned */
    width: auto !important;
    /* Auto width to fit content */
    max-width: 50%;
    /* Restrict width so it doesn't span full width */
    margin-right: 10%;
    /* Push a bit from the very edge if needed, or rely on padding */
  }

  /* Typography for Hero */
  .hero-logo {
    margin-bottom: 1.5rem;
    height: 48px;
    display: block;
  }

  .hero-title {
    font-size: 3.5rem !important;
    /* Besar */
    font-weight: 700 !important;
    /* Bold */
    line-height: 1.2;
    margin-bottom: 0.5rem;
    display: block;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.95;
    display: block;
  }

  /* FORM SECTION */
  .login-form-wrapper {
    background-color: #f5f7fa !important;
    min-height: 55vh !important;
    /* Remaining height */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 80px !important;
    box-sizing: border-box !important;
    /* Reset mobile styles */
    max-width: none !important;
    margin: 0 !important;
  }

  .login-form-container {
    width: 420px !important;
    background: transparent !important;
    padding: 0 !important;
    /* Reset mobile styles */
    max-width: 420px !important;
  }

  /* FORM ELEMENTS */
  /* Input Styles */
  .input-group-modern input {
    height: 52px !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 16px !important;
    font-size: 1rem;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }

  .input-group-modern input:focus {
    border-color: #66a6ff !important;
    box-shadow: 0 0 0 4px rgba(102, 166, 255, 0.2) !important;
    outline: none;
  }

  /* Spacing antar input 20px */
  .input-group-modern .group {
    margin-bottom: 20px !important;
  }

  /* Password Toggle */
  .password-wrapper {
    position: relative;
  }

  .password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    z-index: 10;
  }

  .password-toggle-btn:hover {
    color: #66a6ff;
  }

  /* Login Button */
  #loginButton.btn-modern {
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(90deg, #F2A812 0%, #ffc107 100%);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(242, 168, 18, 0.2), 0 2px 4px -1px rgba(242, 168, 18, 0.1);
    border: none;
    margin-bottom: 1.5rem;
  }

  #loginButton.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(242, 168, 18, 0.3);
  }

  /* Register Link */
  .register-link-container {
    text-align: center;
    width: 100%;
  }

  .register-link {
    font-size: 14px;
    color: #66a6ff;
    text-decoration: none;
    font-weight: 500;
  }

  .register-link:hover {
    text-decoration: underline;
  }

  /* Hide Mobile Elements on Desktop */
  .xl\:hidden {
    display: none !important;
  }

  /* Ensure Desktop Elements are visible */
  .xl\:block {
    display: block !important;
  }
}