:root {
    --trickle-blue: #3fa3f8;
    --trickle-blue-dark: #2b70aa;
    --trickle-blue-light: #c1e1fd;
    --trickle-green: #6de5b2;
    --trickle-green-light: #d0f7e6;
    --trickle-dark: #032230;
    --trickle-grey-light: #f8f8f8;
    --trickle-grey-mid: #e8ecef;
    --trickle-danger: #dc3545;
    --trickle-danger-light: #ffe8e8;
    --trickle-success-light: #d0f7e6;
    --font-serif: "Libre Baskerville", Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    color: var(--trickle-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.auth-main {
    flex: 1;
    padding: 2rem 1.25rem 4rem;
}

.auth-main__inner {
    max-width: 72rem;
    margin: 0 auto;
}

.auth-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 960px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 2.5rem;
        align-items: stretch;
    }
}

.auth-sidenote {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--trickle-grey-light);
    border: 1px solid rgba(3, 34, 48, 0.06);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
}

@media (min-width: 960px) {
    .auth-sidenote,
    .auth-card {
        min-height: 100%;
    }

    .auth-sidenote {
        justify-content: center;
        padding: 2.5rem 2rem;
    }
}

.auth-sidenote .auth-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.auth-sidenote__illustration {
    aspect-ratio: 4 / 3;
    border-radius: 0.875rem;
    border: 1px dashed rgba(63, 163, 248, 0.35);
    background: linear-gradient(135deg, rgba(193, 225, 253, 0.55), rgba(208, 247, 230, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: rgba(3, 34, 48, 0.35);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-sidenote__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.625rem;
    line-height: 1.35;
    font-weight: 700;
}

.auth-sidenote__title a {
    color: var(--trickle-blue);
    text-decoration: none;
}

.auth-sidenote__title a:hover {
    text-decoration: underline;
}

.auth-sidenote__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(3, 34, 48, 0.72);
}

.auth-sidenote__text a {
    color: var(--trickle-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-sidenote__text a:hover {
    text-decoration: underline;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(3, 34, 48, 0.08);
    border: 1px solid rgba(3, 34, 48, 0.06);
    padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2.25rem 2rem 2rem;
    }
}

.auth-card__title {
    margin: 0 0 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 700;
}

.auth-card__subtitle {
    margin: -0.75rem 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(3, 34, 48, 0.65);
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
    color: rgba(3, 34, 48, 0.45);
    font-size: 0.875rem;
    text-transform: lowercase;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--trickle-grey-mid);
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field__wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--trickle-grey-mid);
    border-radius: 0.625rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field__wrap:focus-within {
    border-color: var(--trickle-blue);
    box-shadow: 0 0 0 3px rgba(63, 163, 248, 0.15);
}

.auth-field__icon {
    flex-shrink: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(3, 34, 48, 0.4);
}

.auth-field__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-field__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.875rem 0.875rem 0.875rem 0;
    font-size: 1rem;
    color: var(--trickle-dark);
    outline: none;
}

.auth-field__input::placeholder {
    color: rgba(3, 34, 48, 0.38);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 1.25rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(3, 34, 48, 0.75);
    cursor: pointer;
}

.auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--trickle-blue);
}

.auth-link {
    color: var(--trickle-blue);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.auth-btn--primary {
    background: var(--trickle-blue);
    color: #fff;
    padding: 0.875rem 1.75rem;
}

.auth-btn--primary:hover {
    background: var(--trickle-blue-dark);
}

.auth-btn--outline {
    background: #fff;
    color: var(--trickle-blue);
    border: 2px solid var(--trickle-blue);
    padding: 0.75rem 1.5rem;
}

.auth-btn--outline:hover {
    background: rgba(63, 163, 248, 0.06);
}

.auth-btn__arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.auth-footer-text {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(3, 34, 48, 0.65);
}

.auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-alert--error {
    background: var(--trickle-danger-light);
    color: #842029;
}

.auth-alert--success {
    background: var(--trickle-success-light);
    color: var(--trickle-dark);
}

.auth-wave-footer {
    height: 5rem;
    background: linear-gradient(180deg, rgba(63, 163, 248, 0.08) 0%, var(--trickle-blue) 100%);
    clip-path: ellipse(120% 100% at 50% 100%);
}

@media (min-width: 768px) {
    .auth-wave-footer {
        height: 6.5rem;
    }
}
