/* ==========================================
   Form Containers
========================================== */

.form-container {
    margin: 0 auto;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;


    background: var(--color-card);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

#loginForm {
    width: 300px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================
   Forms
========================================== */

form {
    display: flex;
    flex-direction: column;
}

input {
    padding: 10px;
    margin-bottom: 10px;

    border: 1px solid #ccc;
    border-radius: var(--radius-small);

    font: inherit;
}

/* ==========================================
   Form Messages
========================================== */

.message-area {
    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 60px;
}

.error-message,
.success-message {
    display: none;

    text-align: center;
    font-size: 14px;
}

.error-message {
    color: red;
}

.success-message {
    color: green;
}

/* ==========================================
   Newsletter Checkbox
========================================== */

#newsletter-checkbox {
    padding: 12px;

    text-align: center;
    font-size: 12px;
}

/* ==========================================
   Animations
========================================== */

.shake {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }

}

/* ==========================================
   Form Links
========================================== */

.text-link {
    display: block;

    margin-top: 12px;

    text-align: center;

    color: var(--color-primary);

    font-size: 0.9em;

    text-decoration: none;

    transition: color var(--transition);
}

.text-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}