:root {
    --color: 0;
    /*249*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom right, hsl(var(--color), 28%, 19%), hsl(0, 0%, 0%));
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
}

.container {
    background-color: #1E1E1E;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.icon {
    text-align: center;
    margin-bottom: 20px;
}

.icon svg {
    color: #ef4444;
    width: 64px;
    height: 64px;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #f3f4f6;
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #2C2C2C;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

input:focus {
    outline: none;
    border-color: hsl(var(--color), 83%, 53%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.error {
    color: #f87171;
    margin-bottom: 10px;
    display: none;
}

button span {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

button {
    font-size: 14px;
    width: 100%;
    padding: 15px;
    background-color: hsl(var(--color), 63%, 43%);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all .2s;
}

button.left {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

button.primary:hover {
    background-color: hsl(var(--color), 52%, 30%);
    transform: scale(1.05);
}

button.primary:active {
    transform: scale(1.1);
}

button.right {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

button.secondary {
    background-color: hsl(var(--color), 0%, 23%);
}

button.secondary:hover {
    background-color: hsl(var(--color), 0%, 15%);
}

.examples {
    margin-top: 20px;
    text-align: center;
    color: hsl(220, 9%, 66%);
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 10px;
}

.examples span {
    background-color: hsl(217, 19%, 27%);
    padding: 4px 8px;
    margin: 0 5px;
    border-radius: 4px;
    font-size: 0.8em;
}

.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

.buttons {
    display: grid;
    grid-template-columns: 60px auto 60px;
}

.floating {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 75px;
    background-color: #1E1E1E;
    border: 1px solid hsl(var(--color), 52%, 30%);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: appear ease 5s forwards;
    display: grid;
    grid-template-columns: 48px auto;
    column-gap: 20px;
    padding: 10px 15px;
    z-index: -1;
}

@keyframes appear {
    0% {
        transform: translateX(-50%) translateY(0);
        z-index: -1;
        opacity: 0;
    }

    25% {
        transform: translateX(-50%) translateY(-90px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-90px);
        z-index: 1;
    }
}

.floating .text {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    font-size: small;
    color: #9ca3af;
}

a {
    color: hsl(var(--color), 83%, 53%);
}

.socials {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.scale {
    transition: transform .2s;
}

.scale:hover {
    transform: scale(1.1);
}