﻿
    :root {
      --purple: #5b2c83;
      --gold: #f2c94c;
      --light-bg: #faf8fd;
      --dark-text: #2c2c2c;
    }

.login-main * {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f6f1fb, #ffffff);
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  padding: 0;
}

    .login-wrapper {
      background: white;
      max-width: 900px;
      width: 100%;
      border-radius: 18px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.1);
      display: flex;
      flex-wrap: wrap;
      overflow: hidden;
      align-items: stretch;
    }

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f6f1fb, #ffffff);
   margin-top: 30px;
   position: relative;
   z-index: 1;
}

    /* LEFT PANEL */
    .login-info {
      background: linear-gradient(160deg, var(--purple), #3e1d5c);
      color: white;
      padding: 50px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .login-info h1 {
      font-size: 2rem;
      margin-bottom: 15px;
      color: var(--gold);
    }

    .login-info p {
      font-size: 1rem;
      line-height: 1.6;
      opacity: 0.95;
    }

    .school-name {
      margin-top: 25px;
      font-weight: 600;
      font-size: 1.05rem;
    }


/* RIGHT PANEL SPLIT */
     .login-actions {
      padding: 50px 40px;
      text-align: center;
      display: flex;
  
      flex-direction: column;
  
      align-items: center; 
    }

/* LEFT CONTENT */
.login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}


    .login-actions h2 {
      font-size: 1.8rem;
      color: var(--purple);
      margin-bottom: 10px;
    }

    .login-actions p {
      margin-bottom: 30px;
      font-size: 0.95rem;
      color: #555;
    }


/* SPLIT RIGHT PANEL */
.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* IMAGE SIDE */
.login-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


.login-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.portal-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 320px; /* ✅ controls width */
}

    .portal-btn {
      text-decoration: none;
      padding: 15px 20px;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      color: white;
      background: linear-gradient(135deg, var(--purple), #6f3aa3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 10px 20px rgba(91,44,131,0.25);
  text-align: center;
  
  width: 100%;
    }

    .portal-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(91,44,131,0.35);
    }

    .portal-btn.gold {
      background: linear-gradient(135deg, var(--gold), #f2994a);
      color: #3a2a00;
    }

    .portal-btn.outline {
      background: transparent;
      color: var(--purple);
      border: 2px solid var(--purple);
      box-shadow: none;
    }

    .portal-btn.outline:hover {
      background: var(--purple);
      color: white;
    }

.disabled-btn{
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

   .forgot-password {
  margin-top: 18px;
  font-size: 0.9rem;
}

.forgot-password a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

 .footer-note {
      margin-top: 20px;
      font-size: 0.85rem;
      color: #777;
    }

  .footer {
  width: 100%;
  margin-top: 50px;
}

.search-btn i {
  font-size: 1.2rem;
}

.login-actions h2,
.login-actions p {
  text-align: center;
}

  /* MOBILE */
    @media (max-width: 768px) {
      .login-wrapper {
        flex-direction: column;
      }


  .login-actions {
    
flex-direction: column;
 
text-align: center; 
}

  
     .login-info {
        text-align: center;
      }


  .login-split {
    grid-template-columns: 1fr;
  }

  .login-image {
    order: -1; /* image appears on top */
  }

  .login-content {
    align-items: center;
    text-align: center;
  }

  .login-image img {
    height: 360px;
    object-fit: cover;
  }
}
 