@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    background-color: #ffffff; /* Light background */
    font-family: 'Roboto', sans-serif; /* Better font */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px; /* Added padding for better appearance on devices */
}

header {
    background: #ffffff; /* White background */
    color: #36a9e1; /* Darker blue text */
    padding: 20px;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: fadeInDown 1s ease-in-out forwards 3s; /* Delayed to start after logo animation */
}

h1 {
    margin: 0;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards 2.5s; /* Slightly before other text */
    padding-bottom: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards 4s; /* Delayed to start after logo animation */
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #ffffff; /* White text */
    background-color: #36a9e1; /* Darker blue background */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    transition: background 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    background: #e0f7fa; /* Lighter blue background */
    transform: translateY(-2px);
}

main {
    text-align: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards 4.5s; /* Delayed to start after logo animation */
}

main h2 {
    color: #333;
    margin-bottom: 20px;
}

main p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

#sigmalogo {
    width: 150px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomInOut 2s ease-in-out forwards, moveToPosition 2s ease-in-out forwards 2s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.0); /* Much bigger */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes moveToPosition {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 20px;
        left: 20px;
        transform: translate(0, 0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
    overflow: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li {
    margin: 5px 0;
  }

  #sigmalogo {
    width: 100px;
    top: 10px;
    left: 10px;
    transform: translate(0, 0);
  }

  header {
    font-size: 18px;
    padding: 10px;
  }

  main h2 {
    font-size: 20px;
  }

  main p {
    font-size: 16px;
  }

  .login-container {
    width: 100%;
    max-width: 300px;
    margin: auto;
    padding: 20px;
  }

  input,
  button {
    width: 100%;
    box-sizing: border-box;
  }
}
