/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background: linear-gradient(to right, #74ebd5, #acb6e5); */
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
    height:30%;
    justify-content: space-evenly;
}

#logo #act-logo {
    width: 100%
}

/* General logo images */
#logo img {
    height: auto;
    max-width: 100%;
}

/* Specific: ACT top logo */
#act-logo {
    max-height: 70px; /* bigger and clearer */
}

/* Specific: IPD logo inside aside */
.logo-aside img {
    max-height: 80px;  /* make it visibly bigger */
    width: auto;
    object-fit: contain;
}


#logo h3 {
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 15px 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-aside {
    width: 70%;
    display: flex;
    justify-content: space-around;
}

#logo .logo-text h1 {
    font-size: 22px;
    margin: 0;
    color: #2c3e50;
    padding: 0 10px;
    font-weight: 600;
}
/* Container */
.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

/* Card */
.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.5s ease forwards;
  transform: translateY(20px);
  opacity: 0;
}

/* Title */
.card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: white;
  padding: 0 5px;
  color: #777;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-group input:focus {
  border-color: #6c63ff;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: #6c63ff;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background-color: #6c63ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #5848d9;
}

/* Error Message */
.error-message {
  color: red;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .card h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {

    html,
    body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: #f2f5f9;
        height: 100vh;
    }

    #logo {
        gap: 5px;
    }

    #logo #act-logo {
        /* height: 20%; */
        width: 100%
    }

    .logo-aside {
        width: 80%;
        display: flex;
         /* border: 1px solid black; */
        /* flex-direction: column; */
        justify-content: space-between;
        align-items: center;
    }

    .logo-aside img {
    max-height: 65px;  /* keep it visible but not too large */
    max-width: 100%;
}

   

    #logo #act-logo {
        max-height: 50px;
        max-width: 80%;
    }

    #logo h3 {
        /* border: 1px solid black; */
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
        font-family: arial black;
    }
  }