/* ====================================================================
   LOGIN PAGE STYLES
   ==================================================================== */

/* Main Login Container */
.main-login {
  height: 100%;
  border: none;
  margin: 0;
  padding: 60px 0;
  border-radius: 0;
  overflow: auto;
}

/* Login Content Container */
.login-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

/* Login Container & Columns */
.login-container {
  width: 1140px;
  max-width: 90vw;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 100%;
  max-height: 800px;
}

.login-column-left {
  width: 50%;
  background-color: var(--bg-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Layout container (example) */
.login {
  display: flex;
  flex-wrap: wrap;          /* stacks on small screens without overflow */
}
/*start Boss Din Make on 12/8/2025*/
/* Right column — no internal scrolling */
.login-column-right {
  flex: 1 1 50%;
  box-sizing: border-box;
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  background-color: var(--bg-100);
  min-height: 500px;
  margin-top: -20px;
 

  /* IMPORTANT: no internal scrolling or height clamp */
  overflow: visible;        /* no scrollbars in this column */
  max-height: none;         /* allow natural height */
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

/* Mobile and small tablets */
@media (max-width: 768px) {
  .login-column-right {
    flex-basis: 100%;
    width: 100%;
    padding: 20px;
    gap: 24px;
    margin-bottom: 20px;
  }
}

/* ⚠️ Remove any later duplicate .login-column-right blocks that set
   overflow-y or max-height again — they will override the above. */
/*END*/

/* Campus Grid Component */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.campus-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-200);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.campus-item:hover {
  background-color: var(--bg-200-hover);
}

/* Pulsing border animation - Default fallback for items without flag colors */
.campus-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    var(--white-20-s),
    var(--white-50-s),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(1px);
}

.campus-item:hover::before {
  opacity: 0.8;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.campus-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  background-color: var(--bg-200);
  border-radius: 7px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.campus-item:hover::after {
  background-color: var(--bg-200-hover);
}

.campus-item > * {
  position: relative;
  z-index: 2;
}

.title-icon {
  font-size: 35px;
  color: var(--white-90);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================================================================
   RESPONSIVE STYLES
   ==================================================================== */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .login-container {
    width: 90vw;
    max-width: 800px;
  }

  .login-column-right {
    padding: 40px;
  }

  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Styles (< 768px) */
@media screen and (max-width: 768px) {
  .main-login {
    height: auto;
    min-height: 100vh;
    padding: 0;
    overflow-y: auto;
  }

  .login-content {
    padding: 0 0 32px 0;
    gap: 24px;
    overflow: visible;
    height: auto;
    min-height: 100vh;
  }

  .login-container {
    flex-direction: column;
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    height: auto;
    overflow: visible;
  }

  .login-column-left {
    width: 100%;
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .login-column-right {
    width: 100%;
    padding: 32px;
    gap: 24px;
    min-height: auto;
    background-color: transparent;
    overflow: visible;
  }

  /* Mobile campus grid */
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  /* Campus items as buttons */
  .campus-item {
    padding: 12px;
    gap: 8px;
    text-decoration: none;
  }

  .campus-item::before,
  .campus-item::after {
    display: none; /* Remove animation elements */
  }

  .container-column.gap-24 {
    gap: 24px;
  }
}


/* Optional fix for extreme overflow cases */
.login-content {
  overflow-y: auto;
  max-height: 100vh;
}

/* Mobile scroll fixes */
@media screen and (max-width: 768px) {
  .login-column-right {
    overflow-y: visible;
    max-height: none;
  }

  .login-content {
    overflow-y: visible;
    max-height: none;
  }
}
.text-link {
  font-size: 14px;
  color: var(--white-60); /* Light grey text */
  text-decoration: none;
}

.text-link:hover {
  color: var(--white-90);
  text-decoration: underline;
}
