/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
  }
  
  /* Password field styling */
  .password-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .password-container input {
    width: 95%;
    box-sizing: border-box;
    padding-right: 2.5rem;
  }
  
  .toggle-password {
    position: absolute;
    right: calc(5% + 0.5rem);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    color: #1e1f20;
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
    z-index: 10;
  }
  
  .toggle-password:hover {
    color: #007bff;
  }
  
  .password-icon {
    font-weight: 500;
    user-select: none;
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
  }
  
  /* Eye icon for show password */
  .password-icon.show::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 10px;
    border: 2px solid #1e1f20;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: transparent;
  }
  
  .password-icon.show::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border: 2px solid #1e1f20;
    border-radius: 50%;
    background: #1e1f20;
  }
  
  /* Eye with slash icon for hide password */
  .password-icon.hide::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 10px;
    border: 2px solid #1e1f20;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: transparent;
  }
  
  .password-icon.hide::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background-color: #1e1f20;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
  }
  
  
  /* Header */
  .header {
    background: green;
    color: yellow;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    
  }
  
  
   /* Container */
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    background: linear-gradient(168deg, #ffffff 0%, #f8f8f8 20%, #f0f0f0 40%, #e8e8b5 60%, #d4e6a0 80%, #c8e0a0 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* scroll: fixed attachment causes viewport jump on mobile when focusing inputs */
    padding: 1%;
    padding-top: 56px; /* space for top bar */
    position: relative;
  }
  
  /* Top-right info container */
  .top-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 52px;
    background: rgba(3, 69, 144, 0.85);
    padding: 8px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 9999; /* ensure on top */
  }
  
  .top-info .info-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .top-info .info-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #000000;
  }
  /* Brand Container - Inside Login Card */
  .brand-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.2rem 0 1rem 0;
    margin-bottom: 8rem;
    margin-top: -4rem;
    width: 100%;
  }

  .brand-logo-app2 {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
  }

  .brand-rich-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .rich-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(to right, #448011 0%, #00FF00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: "Segoe UI", sans-serif;
  }

  .rich-meaning {
    font-size: 1.1rem;
    color: #000000;
    margin: 0.3rem 0 0 0;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
  }

  .brand-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    display: block;
    flex: 1;
    order: 2;
    font-family: "Segoe UI", sans-serif;
  }

  .brand-subtitle {
    display: inline;
    font-size: 0.9rem;
    font-weight: normal;
    font-style: italic;
    color: #000000;
    margin-left: 0.3rem;
    line-height: 1.4;
    text-align: center;
  }

  /* Left container - no longer needed but keeping for structure */
  .left-container {
    display: none;
  }
  /*
  .left-container h2{
    position: absolute;
    top: 80%;
    left: 5%;
    transform: translate(0, -50%);
    color: #2b2b2b;
    text-align: left;
    line-height: 1.05;
    font-size: clamp(26px, 4vw, 30px);
    font-weight: 900;
    letter-spacing: 0.5px;
    z-index: 3;
  }
  
  .left-container h2 .accent{
    color: #ff7a00;
  }*/
  
  /* Left half container 
  .left-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, #ffffff 0%, #82E23E 50%, #eaea98 100%);*/
    /*background-color: #fefefe;
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 1;
    opacity: 0.9;
  }
  
  /* Gradient animation 
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    25% {
      background-position: 100% 50%;
    }
    50% {
      background-position: 50% 100%;
    }
    75% {
      background-position: 0% 100%;
    }
    30% {
      background-position: 0% 50%;
    }
  }*/
  
  /* Logo overlay on left container - removed, using brand-container instead */
  .left-container::before {
    display: none;
  }
  
  
  /* Login Card — barangay logo as centered watermark behind content */
  .login-card {
    border-radius: 12px;
    padding: 4rem 2rem 3rem 2rem;
    width: 100%;
    height: auto;
    max-width: 510px;
    min-height: 750px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
    opacity: calc(0.9);
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 95vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
      url("../Images/logo.png");
    background-position: center, center;
    background-size: auto, min(320px, 72%);
    background-repeat: no-repeat, no-repeat;
  }
  
  /* Content above background layers */
  .login-card > * {
    position: relative;
    z-index: 2;
  }

  /* Form alignment */
  .login-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Title */
  .login-card h2 {
    text-align: center;
    color: #000000;
    margin: 0 0 0.6rem 0;
    font-size: 1.5rem;
    width: 100%;
    align-self: center;
    font-weight: bold;
  }
  
  /* Input Group */
  .input-group {
    margin-bottom: 0.9rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: #000000;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-family: "Segoe UI", sans-serif;
  }

  .input-group input {
    width: 95%;
    padding: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: "Segoe UI", sans-serif;
    color: #141414;
    background-color: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Same shadow stack as :focus — ring slot stays transparent so walang “talon” */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.52), 0 1px 2px rgba(0, 0, 0, 0.68), 0 0 0 3px transparent;
  }

  .input-group input::placeholder {
    color: rgba(20, 20, 20, 0.55);
  }
  
  .input-group input:focus {
    border: 1px solid #228b22;
    outline: none;
    background-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.52), 0 1px 2px rgba(0, 0, 0, 0.68), 0 0 0 3px rgba(34, 139, 34, 0.22);
  }
  .forgot-text{
    margin-top: 0.5rem;
    text-align: right;
    width: 100%;
    font-size: 1.3rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-end;
  }
  
  .forgot-text a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
  }
  
  .forgot-text a:hover {
    text-decoration: underline;
  }
  
  /* Button */
  .btn {
    width: 45%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    color: #060804;
    font-weight: bold;
    font-size: 1.3rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin: 1.5rem auto 2.5rem auto;
    display: block;
    align-self: center;
    position: relative;
    z-index: 3;
  }

  .btn:focus {
    outline: none;
  }

  .btn:focus-visible {
    outline: 2px solid #228b22;
    outline-offset: 2px;
  }

  .btn:active {
    transform: none;
  }
  
  .btn:hover {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(0, 0, 0, 0.18);
  }
  
  /* Signup Text */
  .signup-text {
    margin-top: 6rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 1.4rem;
    width: 100%;
    align-self: center;
    position: relative;
    z-index: 3;
    font-weight: 500;
  }
  
  .signup-text a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
  }
  
  .signup-text a:hover {
    text-decoration: underline;
  }
  
  
  /* Success Notification */
  .success-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .success-notification.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
  }
  
  .success-notification.error {
      background: #dc3545;
  }
  
  .success-notification.warning {
      background: #ffc107;
      color: #000;
  }
  
  .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
  }
  
  .notification-content i {
    font-size: 18px;
  }
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    .login-card {
      padding: 1.5rem;
    }
  
    .header {
      font-size: 1.2rem;
    }
  }