:root {
    --fields-gap: 10px;

    --label-color: var(--zinc-300);
    --label-font-family: 'Lexend', sans-serif;
    --label-font-size: 10px;
    --label-font-weight: 500;

    --input-color: var(--zinc-900);
    --input-background: var(--zinc-100);
    --input-placeholder-color: var(--zinc-400);
    --input-font-family: 'Lexend', sans-serif;
    --input-font-size: 0.9rem;
    --input-font-weight: 400;
}

form {
    width: 100%;

    .success {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 20px;
        text-align: center;
        background-color: var(--green-500);
        color: white;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    .error {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 20px;
        text-align: center;
        background-color: var(--red-500);
        color: white;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    .fields {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: var(--gap);
        width: 100%;
    }

    .field {
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0 0 var(--gap) 0;
        margin: 0;

        label {
            display: inline-block;
            width: calc(100% - 5px);
            margin: 0 0 5px 0;
            padding: 0 0 0 5px;
            line-height: 150%;
            color: var(--label-color);
            font-family: var(--label-font-family);
            font-size: var(--label-font-size);
            font-weight: var(--label-font-weight);
            text-transform: uppercase;
            text-overflow: ellipsis;
            text-align: left;
            transition: color 0.5s;
        }

        input,
        select,
        textarea,
        .input {
            display: inline-block;
            width: calc(100% - 20px);
            height: 28px;
            padding: 5px 10px;
            margin: 0;
            border: 1px solid var(--zinc-400);
            border-radius: 3px;
            box-sizing: content-box;
            color: var(--input-color);
            background-color: var(--input-background);
            font-family: var(--input-font-family);
            font-size: var(--input-font-size);
            font-weight: var(--input-font-weight);
            line-height: 28px;
            text-overflow: ellipsis;
            transition: border-color 0.5s;
            outline: none;
        }

        .input {
            display: inline-flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: center;
            align-items: center;
            align-content: center;
        }

        input::placeholder {
            color: var(--input-placeholder-color);
            text-transform: uppercase;
            text-overflow: ellipsis;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border: 1px solid var(--darker-25);
            box-shadow: 0 0 1px rgba(0, 0, 0, 0.5), 0 0 5px rgba(0, 0, 0, 0.125);
            outline: none;
        }

        input[type="password"],
        input[type="date"],
        input[type="time"] {
            text-align: center;
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        select {
            cursor: pointer;
        }

        select option {
            cursor: pointer;
        }
    }
}
