@import '../../_common/_modules/css/_reset.css';
@import '../../_common/_modules/css/_root-colors.css';
@import '../../_common/_modules/css/_globe.css';

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: var(--background-color);
    font-family: 'Inter', sans-serif;

    main {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3rem;

        section {
            box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;

            h1 {
                margin: 0 0 1rem 0;
                font-weight: bold;
                text-align: center;
                color: var(--title-color);
            }

            form {
                display: flex;
                flex-direction: column;
                text-align: center;
                padding: 1rem;
                min-width: 300px;

                fieldset {
                    display: flex;
                    padding: 1rem;
                    margin-bottom: 1rem;
                    justify-content: center;

                    input[name="email"] {
                        background-color: #f2f2f2;
                        height: 2rem;
                        border: none;
                        box-shadow: rgba(0, 0, 0, 0.19) 0 10px 20px, rgba(0, 0, 0, 0.23) 0 6px 6px;
                        text-align: center;
                    }

                    input[name="email"]:user-valid {
                        border: 0.1rem solid var(--green-color);
                    }

                    input[name="email"]:user-valid + span::before {
                        content: "✓";
                        color: var(--green-color);
                        margin-left: 0.25rem;
                        font-size: 1.5rem;
                    }

                    input[name="email"]:user-invalid {
                        border: 0.1rem solid red;
                    }

                    input[name="email"]:user-invalid + span::before {
                        content: "✖";
                        color: red;
                        margin-left: 0.25rem;
                        font-size: 1.25rem;
                    }
                }

                button[type="submit"] {
                    color: #fff;
                    border: none;
                    padding: 0.5rem;
                    font-weight: bold;
                    font-size: 1rem;
                    background-color: var(--yellow-color);
                    cursor: pointer;
                }
            }
        }
    }
}
