#auth-dialog[open] {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    visibility: visible;
}

#auth-dialog {
    position: relative;
    padding: 0;
    overflow: hidden;

    & form {
        position: fixed;
        width: 80%;
        bottom: 50px;
        left: 20px;
        z-index: 1;

        & .welcome-text {
            font-size: 1.4rem;
            margin: 0;
            padding: 0;
            font-weight: 600;
            color: var(--md-sys-color-on-surface-variant);
            font-family: "Playfair Display", serif;
        }

        & h1 {
            color: var(--md-sys-color-on-surface);
            margin-block: 10px;
            font-size: 2.4rem;
        }

        & p {
            padding: 0;
            font-size: 1.2rem;
            font-weight: 400;
            color: var(--md-sys-color-on-surface-variant);
            font-family: "Roboto", sans-serif;
        }

        & .dialog-actions {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            width: fit-content;
            margin-block-start: 3rem;
        }

        & .btn {
            padding: 1rem 2rem;
            font-size: 1rem;

            & .material-symbols-rounded {
                font-size: 1.5rem;
            }
        }
    }

    & img {
        width: 100%;
        height: 50%;
        object-fit: cover;
        -webkit-mask-image: linear-gradient(to top, transparent 0%, var(--md-sys-color-surface-container-high) 30%);
        mask-image: linear-gradient(to top, transparent 0%, var(--md-sys-color-surface-container-high) 30%);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    &:focus,
    &:active,
    &:focus-within {
        border: none;
        outline: none;
    }
}

.or-divider {
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    white-space: nowrap;
    position: relative;

    &::before,
    &::after {
        content: "";
        flex: 1 1 20px;
        border-bottom: 1.5px solid var(--md-sys-color-outline-variant, #bbb);
        margin: 0 0.5em;
        height: 0;
        min-width: 20px;
    }
}

.heading-animate {
    opacity: 0;
    animation: headingIn var(--motion-expressive-default-spatial) 0.5s both;
}

.desc-animate {
    opacity: 0;
    animation: descIn var(--motion-expressive-default-effects) 0.9s both;
}

.actions-animate {
    opacity: 0;
    animation: actionsIn var(--motion-expressive-default-effects) 1.3s both;
}

#welcome-title {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-align: left;
    margin-bottom: 0.2em;
}

.welcome-text {
    display: inline-block;
    font-size: 1.3rem;
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--md-sys-color-primary);
    opacity: 0;
    animation: welcomeTextIn var(--motion-expressive-default-spatial) 0.1s both;
    margin-bottom: 0.2em;
    margin-right: 0.2em;
}

#welcome-desc {
    opacity: 0;
    animation: descIn var(--motion-expressive-default-effects) 0.9s both;
}

.img-blur-animate {
    opacity: 0;
    animation: imgBlurIn var(--motion-expressive-slow-spatial) 1.8s both;
}

.highlight-momentum {
    position: relative;
    display: inline-block;
    color: var(--md-sys-color-primary-fixed);
    font-weight: bold;
    padding: 0.5rem;
    z-index: 1;
}

.highlight-momentum::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--md-sys-color-on-primary-fixed);
    -webkit-mask: url('/highlight.svg') center center/120% 100% no-repeat;
    mask: url('/highlight.svg') center center/120% 100% no-repeat;
    opacity: 0.9;
    animation: highlight-pop var(--motion-expressive-default-effects) 2s both;
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        .highlight-momentum {
           color: var(--md-sys-color-on-primary-fixed);
        }

        .highlight-momentum::before {
            background-color: var(--md-sys-color-primary-fixed);
        }
    }
}

[data-theme="dark"] {
    .highlight-momentum {
        color: var(--md-sys-color-on-primary-fixed);
    }

    .highlight-momentum::before {
        background-color: var(--md-sys-color-primary-fixed);
    }
}

#auth-dialog {
    & form {
        padding-inline-start: 2rem;
        padding-inline-end: 2rem;

        & img {
            -webkit-mask-image: linear-gradient(to top, transparent 0%, var(--md-sys-color-surface-container-high) 20%);
            mask-image: linear-gradient(to top, transparent 0%, var(--md-sys-color-surface-container-high) 20%);
        }
    }
}

@media (min-width: 768px) {
    #auth-dialog {
        & form {
            top: 50%;
            transform: translateY(-50%);
            bottom: auto;
            width: 36%;
            left: 2%;
        }

        & img {
            bottom: auto;
            left: auto;
            height: 100%;
            width: 60%;
            right: 0 !important;
            top: 0;
            -webkit-mask-image: linear-gradient(to right, transparent 0%, var(--md-sys-color-surface-container-high) 20%);
            mask-image: linear-gradient(to right, transparent 0%, var(--md-sys-color-surface-container-high) 20%);
        }
    }
}