:root {
    --color-primary-blue: #0e7fa6;
    --color-primary-green: #38c7bd;
    --color-primary-background: #f9f9f9;
    --color-secondary-blue: #084e6d;
    --color-secondary-green: #12292b;
    --color-white: #ffffff;
    --color-error-text: #721c24;
}

body {
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-primary-background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-secondary-green);
    font-weight: 600;
    text-align: center;
}

.field-validation-error,
.text-danger {
    display: block;
    color: var(--color-error-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    width: 100%;
    white-space: normal;
}

.input-validation-error {
    border-color: var(--color-error-text);
    border-width: 1.5px;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.auth-button {
    width: 100%;
    height: 40px;
    background: var(--color-primary-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin: 1.5rem 0 1rem;
    -webkit-appearance: none;
    appearance: none;
}

    .auth-button:active {
        background: var(--color-secondary-blue);
        transform: translateY(1px);
    }

.auth-links {
    text-align: center;
    margin: 1rem 0;
    padding: 0 1rem;
}

    .auth-links a {
        color: var(--color-primary-blue);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem;
        display: inline-block;
    }

.banner {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-blue));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    order: 1;
    min-height: 200px;
}

    .banner h2 {
        font-size: 2rem;
        text-align: center;
        font-weight: 500;
    }

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-white) inset !important;
    -webkit-text-fill-color: inherit !important;
}

@media screen and (min-width: 768px) {
    .auth-container {
        margin: 2rem auto;
        width: 90%;
        max-width: 1000px;
        min-height: 500px;
        flex-direction: row;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(18, 41, 43, 0.08);
    }

    .auth-form {
        order: 1;
        padding: 2.5rem;
    }

    .banner {
        order: 2;
        flex: 1;
        padding: 3rem;
    }

        .banner h2 {
            font-size: 2rem;
        }

    .status-message {
        margin-bottom: 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .auth-container {
        margin: 3rem auto;
    }

    .form-wrapper {
        max-width: 320px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .auth-button,
    .auth-links a {
        padding: 1rem;
    }

    .input-group {
        margin-bottom: 2.5rem;
    }
}

@supports (-webkit-touch-callout: none) {
    .auth-container {
        min-height: -webkit-fill-available;
    }

    .form-control {
        line-height: normal;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-message {
    animation: slideIn 0.3s ease-out;
}

.form-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.confirmation-container {
    max-width: 500px;
    width: 100%;
}