@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;600;700&display=swap');

:root {
    --blue: hsl(223, 87%, 63%);
    --pale-blue: hsl(223, 100%, 88%);
    --light-red: hsl(354, 100%, 66%);
    --gray: hsl(0, 0%, 59%);
    --dark-blue: hsl(209, 33%, 12%);
    --font-family: "Libre Franklin", sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-size: 20px;
    line-height: 1.5;
    color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f8f8f8;
}

.wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    width: 80px;
    margin: 0 auto 2rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

h1 span {
    font-weight: 300;
    color: var(--gray);
}

p {
    color: var(--gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.input-group {
    position: relative;
}

input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--pale-blue);
    border-radius: 2rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: hsl(223, 87%, 53%);
}

button:active {
    transform: scale(0.98);
}

.error-message {
    display: none;
    color: var(--light-red);
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.3s ease-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message:not(:empty) {
    display: block;
    opacity: 1;
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1.2s both;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

a {
    text-decoration: none;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.socials a {
    color: var(--blue);
    border: 1px solid var(--pale-blue);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.socials a:hover {
    background-color: var(--blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 0.8rem;
    animation: fadeInUp 1s ease-out 1.8s both;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-size: 0.7rem;
    /* padding: 1rem; */
    /* background-color: white; */
    /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); */
}

@media (min-width: 768px) {
    form {
        flex-direction: row;
      
    }
    
    input[type="email"] {
        flex-grow: 1;
        min-width: 350px;
    }
    
    button {
        flex-shrink: 0;
        min-width: 250px;
        max-height: 52.5px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}