body
{
    background-color:  rgb(226, 224, 235);
    background-image: url(/img/CoffeeBean2.jpg);
}

section
{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 200px;
}

* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.signin 
{
    position: relative;
    width: 370px;
    height: 450px;
    background: #002fa7;
    border-radius: 50px 5px;
    overflow: hidden;
}

.signin::before
{
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 370px;
    height: 450px;
    background: linear-gradient(60deg,transparent,whitesmoke,whitesmoke);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}

.signin::after
{
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 370px;
    height: 450px;
    background: linear-gradient(60deg,transparent,whitesmoke,whitesmoke);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

form
{
    position: absolute;
    inset: 5px;
    border-radius: 50px 5px;
    background: #002fa7;
    z-index: 10;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
}

h2
{
    color:whitesmoke;
    font-size: 35px;
    font-weight: 500;
    text-align: center;
}

.inputBox
{
    position: relative;
    width: 300px;
    margin-top: 35px;
}

.inputBox input
{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #002fa7;
    font-size: 1em;
    letter-spacing: 0.05em;
    z-index: 10;
}

input[type="submit"]
{
    font-size: 20px;
    outline: none;
    border: none;
    background: whitesmoke;
    padding: 5px;
    margin-top: 25px;
    border-radius: 90px;
    font-weight: 600;
    cursor: pointer;
}

input[type="submit"]:active
{
    background: linear-gradient(90deg,black,whitesmoke,#002fa7);
    opacity: 0.8;
}

div > p
{
    color: whitesmoke;
    padding-top: 30px;
}

.inputBox span
{
    position: absolute;
    left: 0;
    padding: 20px 10px 10px;
    font-size: 1em;
    color: whitesmoke;
    pointer-events: none;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span
{
    color: whitesmoke;
    transform: translateX(-10px) translateY(-30px);
    font-size: 0.75em;
}

.inputBox i
{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: whitesmoke;
    border-radius: 10px;
    transition: 0.5s;
    pointer-events: none;
    z-index: 9;
}

.inputBox input:valid ~ i,
.inputBox input:focus ~ i
{
    height: 44px;
}

.links
{
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.links a 
{
    margin: 25px 0;
    font-size: 1em;
    color: whitesmoke;
    text-decoration: none;
}

.links a:hover
{
    text-decoration: underline 2px;
    text-underline-offset: 5px;
}

/* Responsive styles for login.css and register.css */
@media (max-width: 768px) {
    .signin, .register {
        margin: 120px 20px 50px 20px;
        padding: 30px 20px;
    }
    
    form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .inputBox {
        margin: 20px 0;
    }
    
    .inputBox input {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin: 20px 0;
    }
    
    .links {
        text-align: center;
        margin: 20px 0;
    }
    
    .links a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .signin, .register {
        margin: 100px 15px 30px 15px;
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .inputBox input {
        padding: 12px;
        font-size: 14px;
    }
}
