*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body{
    background-image: url("../image/background.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.overlay{
  background: rgba(51, 50, 50, 0.65);
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* ✅ THIS is the key */
  justify-content: center;
  align-items: center;
}

.portal-heading {
  text-align: center;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 1px;
}


.button-container{
    width: 70%;
    height: 10%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.button-container a{
    min-height: 76px;              /* ✅ equal height */
    padding: 20px 5px;
    display: flex;                 /* center text nicely */
    align-items: center;
    justify-content: center;
    text-align: center;

    background: linear-gradient(135deg, #264653, #2A908F);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    line-height: 1.4;

    position: relative;
    overflow: hidden;

    transition: 
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-position 0.35s ease;
    background-size: 200% 200%;
    text-decoration: none;
}

/* Simple hover lift */
.button-container a:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(177,42,42,0.4);
    background-position: right center;
}

/* Soft shine animation (minimal) */
.button-container a::after{
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );
    transition: left 0.55s ease;
}

.button-container a:hover::after{
    left: 120%;
}

/* Click feedback */
.button-container a:active{
    transform: translateY(-2px) scale(0.98);
}

.button-container a{
    gap: 10px;                /* icon + text spacing */
}

.button-container a i{
    font-size: 18px;
    opacity: 0.9;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Icon micro animation */
.button-container a:hover i{
    transform: scale(1.15);
    opacity: 1;
}


/* MOBILE SAFE */
@media(max-width: 768px){
    .button-container{
        width: 90%;
        grid-template-columns: 1fr;
    }
}
