body {
    font-family: Georgia;
    width: 100%;
    min-height: 100vh;
    margin: 0px;
    display: flex;
    flex-direction: column;
}

header{
    background-color: #3333CB;
    color: white;
    font-family: "Fustat", sans-serif;
    font-size: 20px;
    padding: 25px 15px;
    height: 15%;
    margin: 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card a{
    text-decoration: none;
    color: inherit;
    font-family: "Fustat", sans-serif;
}

header h2{
    color: white;
    margin-left: 20px;
    margin: 0;
}

header a{
    text-decoration: none;
    color: inherit;
    font-family: "Unbounded", sans-serif;
}

header h5{
    margin: 0;
}

.discover-more {
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: subtle-glow 3s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.2);
}

.discover-more:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.4);
}

@keyframes subtle-glow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 5px rgba(255,255,255,0.1);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 10px rgba(255,255,255,0.2);
    }
}

.card {
    background: white;
    /*background: rgba(219,255,249,0.9) ; /* rgba(255, 127, 80, 0.93);*/
    position: relative; /* Allow absolute positioning of child elements */
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    padding: 20px;
    margin: 50px auto;
    width: 28%;
    max-width: 400px;
    text-align: center;
    height: auto;
    min-height: 70%;
    flex-direction: column;
    align-items: center;
    position: relative;
}

form input {
    width: 70%; 
    height: 20px;
    padding: 10px;
    padding-left: 40px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Fustat', sans-serif;
}

.submit {
    width: 60%; 
    background: linear-gradient(-45deg, #3333CB 40%, #DBFFF9 50%, #3333CB 60%);
    background-size: 300%;
    background-position-x: 100%;
    animation-duration: 4s;
    animation-name: shimmer;
    animation-iteration-count: infinite;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-family: "Fustat", sans-serif;
    font-size: 15px;
}


.reg{
    width: 60%; 
    background: white;
    background-size: 300%;
    background-position-x: 100%;
    border: solid;
    border-color: #3333CB;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: #3333CB;
    font-family: "Fustat", sans-serif;
    font-size: 15px;
    text-decoration: none;
    margin-top: 15px;
}

@keyframes shimmer {
    to {
       background-position-x: -1%
    }
}

.submit:hover {
    background-color: #0056b3;
    box-shadow: 0px 10px 5px 2px rgba(0, 0, 0, 0.2);
}


.submit{
    margin-top: 15px;
    margin-bottom: 0px;
}


.reg:hover {
    background-color: #F2F2F2;
}



#errorMessage {
    border: 2px solid #3333CB; /* Light border */
    background-color: #fffaeb90; /* Black with 50% opacity */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding for better visibility */
    color: black; /* Text color */
    display: none; /* Initially hidden */
}

h2 {
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: bold;
    font-size: 35px;
    letter-spacing: 0.5px;
    color: black;
  }

.input-container {
    width: 100%;
    position: relative;
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center the input fields */
    
  }

.input-container i {
    position: absolute;
    left: 12%; /* Position the icon on the left */
    top: 50%; /* Center the icon vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    font-size: 17px; /* Adjust icon size if necessary */
    color: #ccc;
    
}

.forgot-password {
    /* Remove absolute positioning to place beneath register button */
    position: static;
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
    color: #3333CB;
    text-decoration: none;
    cursor: pointer;
    padding: 0 10px 0 0;
}



main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  text-align: center;
  font-family: "Unbounded";
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: auto;
}

footer a {
  color: #0066cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .card {
        width: 40%;
        margin: 30px auto;
    }
    
    header {
        padding: 10px;
    }
    
    header h2 {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 10px;
    }
    
    header h2 {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .card {
        width: 90%;
        max-width: 350px;
        margin: 20px auto;
        padding: 25px 20px;
        height: auto;
        min-height: auto;
    }
    
    h2 {
        font-size: 28px;
    }
    
    form input {
        width: 85%;
        padding: 12px 12px 12px 45px;
        margin: 12px 0;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .input-container i {
        left: 8%;
    }
    
    form input::placeholder {
        padding-left: 0px;
    }
    
    .submit, .reg {
        width: 80%;
        padding: 12px;
        font-size: 16px;
        margin-top: 20px;
    }
    
    .forgot-password {
        font-size: 0.9em;
        margin-top: 15px;
    }
    
    footer {
        flex-direction: column;
        gap: 20px;
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .card {
        width: 95%;
        margin: 15px auto;
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    form input {
        width: 90%;
        padding: 14px 14px 14px 50px;
        font-size: 16px;
    }
    
    .input-container i {
        left: 6%;
        font-size: 14px;
    }
    
    form input::placeholder {
        padding-left: 0px;
    }
    
    .submit, .reg {
        width: 90%;
        padding: 14px;
        font-size: 15px;
    }
    
    header {
        padding: 10px 5px;
    }
    
    .discover-more {
        padding: 6px 12px;
        font-size: 14px;
    }
}
