body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: "Fixedsys", "Courier New", monospace; /* Apply Fixedsys font */
    background: linear-gradient(270deg, #fedb4f, #4400ff);
    background-size: 400% 400%;
    animation: gradientAnimation 25s ease infinite;
}

/* Keyframes for background animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-track {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 7rem;
}



.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3rem;
    padding: 2.5rem;
    box-shadow: 0 .8rem 1.6rem rgba(0, 0, 0, 0.2);
    width: 17rem;
}

.login-box {
    width: 100%;
    background-color: #ffffff;
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 .8rem 1.6rem rgba(0, 0, 0, 0.2);
    text-align: center;
}

.intofocus {
    padding-left: 5rem;
    padding-right: 5rem;
    transition: padding 0.3s ease;
}


h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #333333;
    font-size: 28px;
    letter-spacing: 1px;
}

h2 img {
    width: 3.7rem; /* Adjust the size of the icon */
    height: 3.7rem;
    margin-right: .75rem; /* Space between the icon and the text */
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

input[type="text"],
input[type="password"] {
    padding: 1rem;
    font-size: 1rem;
    border: .1rem solid #cccccc;
    border-radius: .8rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4facfe;
}

input::placeholder {
    color: transparent;
}



label.effects {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: auto;
    padding: .1rem .5rem;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #777777;
    transition: top 0.3s ease, color 0.3s ease, font-size 0.3s ease;
    pointer-events: none;
    border-radius:1rem;
}

input:focus + label,
input:not(:placeholder-shown) + label,
input:not(:empty) + label {
    top: 0;
    transform: translateY(-45%);
    font-size: .8rem;
    color: #4facfe;
    padding: 0rem .2rem;
}


input:focus + label {
    color: #4facfe;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #634ffe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #00f2fe;
}

#responseMessage {
    text-align: center;
    margin-top: .5rem;
    font-size: .8rem;
    height: 24px; /* Set a fixed height to avoid layout shifts */
    line-height: 24px; /* Vertically center the text */
    color: white; /* Set the text color to white */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Apply a black shadow */
}


#responseMessage.failed {
    color: red;
    animation: pulse 2s infinite; /* Apply the pulse animation */
    transform-origin: center; /* Ensure the pulse effect is centered */
}

/* Define the pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
    50% {
        opacity: 0.8; /* Fade out slightly */
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.8); /* Increase glow */
    }
}
label.rem {
    display: flex;
    justify-content: flex-end; /* Center vertically within the label */
    align-items: center; /* Center horizontally within the label */
    height: 100%; 
    box-sizing: border-box;
    width: 100%;
    margin-top: .75rem;
}

.remember-container {
    display: none;
    flex-direction: row; /* Stack elements vertically */
    justify-content: flex-end; /* Center vertically within the container */
    align-items: flex-end; /* Align elements to the right horizontally */
    width: 100%;
    height: 100%; /* Ensure container takes up full height */
    font-size: .8rem;
}

/* reset ALL link states */
a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none !important; /* kill underline everywhere */
  border: none !important;          /* kill any border underlines */
  outline: none !important;         /* kill dotted outline in some browsers */
  color: #634ffe;                   /* your color */
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* custom hover */
a:hover {
  color: #7B3FC6;
  transform: scale(1.05);
}
