@font-face {
    font-family: 'Dongle';
    src: url('fonts/Dongle-Regular.ttf');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'LondrinaOutline';
    src: url('fonts/LondrinaOutline-Regular.ttf');
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Londrina';
    src: url('fonts/LondrinaSolid-Regular.ttf');
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'LondrinaShadow';
    src: url('fonts/LondrinaShadow-Regular.ttf');
    font-display: swap;
    font-style: normal;
}

body {
    background: #000000;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgb(71, 6, 105) 100%);
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'LondrinaShadow', sans-serif;
    color: white;
    font-size: 11em;
    font-weight: 100;
    margin-bottom: 0px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: 'Londrina', sans-serif;
    color: white;
    font-size: 2.2em;
    margin: 0;
    position: relative;
    top: -20px;
}

.username {
    color: white;
    background-color: black;
    border: none;
    margin-bottom: 15px;
    font-family: 'Londrina', sans-serif;
    text-align: center;
    border-radius: 50px;
    opacity: 25%;
    width: 280px;
    height: 35px;
    font-size: 1.1em;
    transition: 0.5s;
}

.password {
    color: white;
    background-color: black;
    border: none;
    margin-bottom: 15px;
    font-family: 'Londrina', sans-serif;
    text-align: center;
    border-radius: 50px;
    opacity: 25%;
    width: 280px;
    height: 35px;
    font-size: 1.1em;
    transition: 0.5s;
}

.username:focus {
    outline: none;
    box-shadow: 5px 5px 20px #000000;
    transition: 0.5s;
}

/* .username:hover {
    transform: scale(1.05);
    transition: 0.5s;
} */

.password:focus {
    outline: none;
    box-shadow: 0 0 20px #000000;
    transition: 0.5s;
}

/* .password:hover {
    transform: scale(1.05);
    transition: 0.5s;
} */

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    cursor: pointer;
    transition: 0.5s;
}

button:hover {
    transition: 0.5s;
    transform: scale(1.15);
}

.register  {
    width: 100px;
    height: 38px;
    margin-right: 20px;
    color: white;
    background-color: rgba(255, 0, 0, 0.875);
    font-family: 'Londrina', sans-serif;
    opacity: 100%;
    border-radius: 40px;
    border: none;
    font-size: 1.2em;
}

.login  {
    width: 100px;
    height: 38px;
    color: white;
    background-color: green;
    font-family: 'Londrina', sans-serif;
    opacity: 100%;
    border-radius: 40px;
    border: none;
    font-size: 1.2em;
}

/* Mobile and Responsive Styles */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 20px;
        height: 100vh;
        justify-content: center;
    }

    h1 {
        font-size: 7em;
        text-align: center;
        margin-top: 0;
    }

    h2 {
        font-size: 1.8em;
        text-align: center;
        top: -10px;
    }

    .username, .password {
        width: 90%;
        max-width: 280px;
    }

    .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .register, .login {
        width: 90%;
        max-width: 280px;
        margin: 0;
    }
}

/* Small phones */
@media screen and (max-width: 320px) {
    h1 {
        font-size: 5em;
    }

    h2 {
        font-size: 1.5em;
    }
}

/* Landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .login-container {
        padding: 10px;
    }

    h1 {
        font-size: 4em;
        margin-bottom: 5px;
    }

    h2 {
        font-size: 1.4em;
        top: -5px;
    }

    .username, .password {
        margin-bottom: 10px;
        height: 30px;
    }

    .buttons {
        flex-direction: row;
        gap: 10px;
    }

    .register, .login {
        height: 32px;
        font-size: 1em;
    }
}

/* High-resolution displays */
@media screen and (min-width: 1920px) {
    .login-container {
        transform: scale(1.2);
    }
}