* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'dosis';
}

*::selection {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.container {
    padding: 2.5rem 4.5rem;
    border-radius: 30px;
    width: min(90%, 500px);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
        0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-bottom: 1.5rem;
    min-height: 38rem;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 12px 10px rgba(255, 255, 255, 0.07),
        0 12px 35px rgba(0, 0, 0, 0.15);
}

.container:hover ~ button {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.container h1 {
    margin-bottom: 1.75rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

hr {
    border: none;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    height: 1px;
    margin: 1.5rem 0;
    opacity: 0.15;
    position: relative;
    bottom: 0.3rem;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    bottom: 0.3rem;
}

.inputs label {
    font-size: 1rem;
    position: relative;
    bottom: 0.4rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

input {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

input::placeholder {
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.6);
}

input:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.05);
}

small.error {
    color: #ff6b6b;
    position: fixed;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

button {
    display: block;
    position: absolute;
    bottom: 0;
    width: min(90%, 300px);
    padding: 0.9rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    max-width: 300px;
    margin: 0 auto;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 5px 5px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3px;
}

button:hover {
    box-shadow: inset 0 0 5px 9px rgba(255, 255, 255, 0.07),
        0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    button {
        bottom: 0;
    }
}

@media (max-width: 600px) {
    .form {
        padding-bottom: 5rem;
    }
    .container {
        width: 85%;
        padding: 1.7rem;
        margin-bottom: 0;
    }
    button {
        bottom: 3.4rem;
        padding: 0.8rem 2rem;
        width: min(45%, 400px);
    }

    button:active {
        transform: translateX(-50%) translateY(1px);
    }
}

@keyframes float-m {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes float-d {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}
