@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;700&display=swap');
:root {
    --primarycolor: #100E2F;
    --secondarycolor: #1BA5AF;
    --secondsecondary: #C4DA50;
}

* {
    box-sizing: border-box;
    font-family: 'Crimson Pro', serif;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color:#fff;
    display: flex;
    flex-direction: column;
    font-family: 'Crimson Pro', serif;
}

header {
    width: 100%;
    height: 120px;
    padding: 0px 5%;
    display: flex;
    align-items: center;
}

header img {
    width: auto;
    height: 80%;
}

.body {
    width: 100%;
    height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logincontainer {
    width: 60vw;
    max-width: 500px;
    min-width: 280px;
    height: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #1ba5af9c;
    box-shadow: 1px 1px 10px 3px #1ba5af60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondarycolor);
}
.logincontainer h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;

}
form{
    width: 100%;
    padding: 10px 0px;
    /* background-color: red; */
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* From Uiverse.io by alexruix */ 
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 10px; /* Adjust to position the icon inside the input */
    transform: translateY(-50%);
    pointer-events: none; /* Prevents the icon from blocking input clicks */
}
.toggle-visibility {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
   
   .input {
    width: 100%;
    border: 1px solid #1ba5af9c;
    box-shadow: 1px 1px 10px  #1ba5af60;
    border-radius: 10px;
    background: none;
    padding: 10px 35px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primarycolor);
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
   }
   
   .user-label {
    position: absolute;
    left: 35px;
    color: #3e3f3fa6;
    pointer-events: none;
    transform: translateY(10px);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap; /* Prevents text from wrapping to a new line */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Adds "..." at the end of overflowed text */
    max-width: calc(100% - 35px); /* Adjusts the max width to fit within input */
   }
   
   .input:focus, input:valid {
    outline: none;
    border: 1.5px solid var(--secondarycolor);
   }
   
   .input:focus ~ label, input:valid ~ label {
    transform: translateY(-50%) scale(0.8);
    background-color: #fff;
    padding: 0px 2px;
    color: var(--primarycolor);
    font-weight: 600;
    font-size: 20px;
    
   }
   .forgetpassword{
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
   }
  #forgotpassword{
    all: unset;
    margin: 0;
    padding: 0;
    text-align: right;
    cursor: pointer;
    font-weight: 600;
   }
  
   button{
    border: 1px solid #1ba5af9c;
    box-shadow: 1px 1px 10px  #1ba5af60;
    border-radius: 10px;
    background: none;
    padding: 8px 45px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: var(--secondarycolor);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    
   }
   button:hover {
    color: var(--secondsecondary);
   }
/* Keyframes for dot animation */
@keyframes dotAnimation {
    0% {
        content: "Verifying credential.";
    }
    33% {
        content: "Verifying credential..";
    }
    66% {
        content: "Verifying credential...";
    }
    100% {
        content: "Verifying credential.";
    }
  }
  
  /* The class for animated dots */
  .animated-text1::after {
    content: "Verifying credential."; /* Initial content */
    animation: dotAnimation 1.5s steps(1, end) infinite;
    margin-left: 8px; /* Adds space between "Processing" and dots */
  }
  




/* Responsive Design */
@media (max-width: 768px) {
    .logincontainer {
        width: 80vw;
    }

    header {
        height: 80px;
    }

    header img {
        height: 60%;
    }
}

@media (max-width: 480px) {
    .logincontainer {
        width: 90vw;
        padding: 35px 15px;
    }


    header {
        height: 20vh;
        /* background-color: red; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    header img {
        height: 90%;
    }
    .body{
        align-items: flex-start;
        margin-top: 15vh;
    }

}
