:root {
    --pastel-rose: #f4c7c3;
    --pastel-lilac: #dcd6ff;
    --pastel-mint: #d8f4ea;
    --pastel-sand: #f6e5d9;
    --pastel-ink: #162038;
    --pastel-stone: #39415f;
    --pastel-sun: #f7d684;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, var(--pastel-lilac) 0%, var(--pastel-mint) 60%, var(--pastel-sand) 100%);
    color: var(--pastel-ink);
}

img {
    max-width: 100%;
    display: block;
}

a,
.link-underline {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

a::after,
.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: currentColor;
    opacity: 0;
    transform-origin: left;
    transform: scaleX(1);
    transition: opacity 160ms ease-out;
    pointer-events: none;
}

@keyframes link-underline {
    from {
        transform: scaleX(0);
        opacity: 0.2;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

a:hover::after,
a:focus-visible::after,
.link-underline:hover::after,
.link-underline:focus-visible::after {
    animation: link-underline 200ms ease-out forwards;
    opacity: 1;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
[role="button"] {
    cursor: pointer;
}

main {
    min-height: 75vh;
}

.pastel-shadow {
    box-shadow: 0 12px 40px rgba(57, 65, 95, 0.15);
}

.gradient-panel {
    border-radius: 24px;
    padding: 2rem;
    background: linear-gradient(145deg, var(--pastel-rose), var(--pastel-sun));
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 220ms ease-out;
}

.loader-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 6rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    animation: pulsOut 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
}

.loader:before {
    width: 100%;
    padding-bottom: 100%;
    box-shadow: inset 0 0 0 1rem #fff;
    animation-name: pulsIn;
}

.loader:after {
    width: calc(100% - 2rem);
    padding-bottom: calc(100% - 2rem);
    box-shadow: 0 0 0 0 #fff;
}

@keyframes pulsIn {
    0% {
        box-shadow: inset 0 0 0 1rem #fff;
        opacity: 1;
    }

    50%,
    100% {
        box-shadow: inset 0 0 0 0 #fff;
        opacity: 0;
    }
}

@keyframes pulsOut {
    0%,
    50% {
        box-shadow: 0 0 0 0 #fff;
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 1rem #fff;
        opacity: 1;
    }
}
