main {
    height: 80%;
}

body {
    overflow: hidden;
}

.form_container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    width: 90%;
    max-width: 300px;
    background-color: #1A0B2E;
    color: #F2F2F2;
    padding: 1em;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

:root[data-theme="light"] form {
    background-color: #260E09;
}

form > div {
    margin-bottom: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    position: relative;
}

input {
    padding: 0.25em;
    background-color: #1A0B2E;
    color: #F2F2F2;
    border: 1px solid rgba(147, 51, 234, 0.5);
    font-weight: 600;
    font-size: large;
    /* border-radius: 8px; */
    transition: all 0.3s ease-in-out;
}

input:focus {
    outline: none;
    transform: scale(1.05);
    background-color: #3B1E54;
    border-color: #9333EA;
}

:root[data-theme="light"] input {
    background-color: #260E09;
    border-color: rgba(242, 90, 56, 0.5);
}

:root[data-theme="light"] input:focus {
    background-color: #591914;
    border-color: #F25A38;
}

button {
    background-color: #9333EA;
    border: none;
    padding: 0.25em;
    color:#F2F2F2;
    font-weight: 600;
    font-size: large;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover{
    background-color: #7C2BC9;
}

:root[data-theme="light"] button {
    background-color: #F25A38;
}

:root[data-theme="light"] button:hover {
    background-color: #D94E2F;
}

.notification {
    position: absolute;
    height: fit-content;
    font-weight: 600;
    font-size: large;
    padding: 1em 2em;
    background-color: #D93232;
    color: #F2F2F2;
    bottom: -100%;
    animation: notification_animation 5s ease-in-out;
}

@keyframes notification_animation {
    0% {
        bottom: -100%
    }
    10% {
        bottom: 1%;
    }
    50% {
        bottom:1%
    }
    90% {
        bottom: 1%
    }
    100% {
        bottom: -100%
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    form {
        width: 95%;
        max-width: 350px;
        padding: 1.25em;
    }

    input,
    button {
        font-size: medium;
    }
}

@media (max-width: 480px) {
    form {
        width: 100%;
        max-width: 280px;
        padding: 1em;
        gap: 0.75em;
    }

    input,
    button {
        font-size: small;
        padding: 0.35em;
    }

    .notification {
        font-size: medium;
        padding: 0.75em 1em;
    }
}
