.auth-user {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-user article {
    max-width: 360px;
    width: 100%;
}

.auth-user h1 {
    color: var(--text-900);
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 38px;
    font-family: var(--font-family-inter);
    margin: 0;
}

.auth-user p {
    color: var(--text-600);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-top: 12px;
}

.auth-user form {
    margin-top: 32px;
}

.auth-user .user-links {
    width: 100%;
    display: flex;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
    background-color: var(--gray-50);
    gap: 4px;
}

.auth-user .user-links a {
    display: flex;
    height: 36px;
    padding: 8px;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: var(--text-500);
    background-color: var(--gray-50);
    box-shadow: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out,
        color 0.2s ease-in-out;
}
.auth-user .user-links a:hover,
.auth-user .user-links a.active {
    color: var(--gray-700);
    background-color: var(--background-color-light);
    box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),
        0px 1px 2px 0px rgba(16, 24, 40, 0.06);
}

.auth-user .forgot-password {
    width: 100%;
    margin-top: 4px;
}

.auth-user .forgot-password a {
    color: var(--color-brand-600);
    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    display: block;
    width: 100%;
}

.auth-user .google-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

    color: var(--text-700);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;

    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: var(--background-color-light);
    padding: 10px;
    gap: 12px;
    margin-top: 16px;

    box-shadow: 0px 0px 0px 1px rgba(16, 24, 40, 0.18) inset,
        0px -2px 0px 0px rgba(16, 24, 40, 0.05) inset,
        0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-user .google-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(66, 133, 244, 0.1),
        rgba(219, 68, 55, 0.1),
        rgba(244, 180, 0, 0.1),
        rgba(15, 157, 88, 0.1)
    );
    transition: left 0.5s ease;
    z-index: 0;
}

.auth-user .google-login:hover {
    transform: translateY(-2px);
    background-color: #f8f9ff;
    box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.12),
        0px 0px 0px 1px rgba(16, 24, 40, 0.18) inset,
        0px -2px 0px 0px rgba(16, 24, 40, 0.05) inset;
    border-color: var(--gray-400);
    color: #4285f4;
}

.auth-user .google-login:hover::before {
    left: 0;
    animation: google-colors 2s infinite linear;
}

.auth-user .google-login > * {
    position: relative;
    z-index: 1;
}

@keyframes google-colors {
    0% {
        background: linear-gradient(
            90deg,
            rgba(66, 133, 244, 0.2),
            rgba(219, 68, 55, 0.1),
            rgba(244, 180, 0, 0.1),
            rgba(15, 157, 88, 0.1)
        );
    }
    25% {
        background: linear-gradient(
            90deg,
            rgba(15, 157, 88, 0.1),
            rgba(66, 133, 244, 0.2),
            rgba(219, 68, 55, 0.1),
            rgba(244, 180, 0, 0.1)
        );
    }
    50% {
        background: linear-gradient(
            90deg,
            rgba(244, 180, 0, 0.1),
            rgba(15, 157, 88, 0.1),
            rgba(66, 133, 244, 0.2),
            rgba(219, 68, 55, 0.1)
        );
    }
    75% {
        background: linear-gradient(
            90deg,
            rgba(219, 68, 55, 0.1),
            rgba(244, 180, 0, 0.1),
            rgba(15, 157, 88, 0.1),
            rgba(66, 133, 244, 0.2)
        );
    }
    100% {
        background: linear-gradient(
            90deg,
            rgba(66, 133, 244, 0.2),
            rgba(219, 68, 55, 0.1),
            rgba(244, 180, 0, 0.1),
            rgba(15, 157, 88, 0.1)
        );
    }
}

.auth-user .password-requirements {
    display: flex;
    flex-wrap: wrap;
    margin-top: -14px;
    margin-bottom: 4px;
    column-gap: 8px;
    row-gap: 6px;
}

.auth-user .password-requirements div {
    background-color: var(--background-gray-300);
    gap: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-400);
    padding: 1px 5px;
    border-radius: 12px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.auth-user .password-requirements div p {
    margin-top: 0;
    font-size: 14px;
}

.auth-user .password-requirements svg {
    width: 16px;
    height: 16px;
}

.auth-user .password-requirements path {
    transition: stroke 0.2s ease-in-out;
    stroke: var(--text-400);
}

.auth-user .password-requirements div.green {
    background-color: var(--background-green-300);
    color: var(--text-green-500);
}

.auth-user .password-requirements div.green path {
    stroke: var(--text-green-500);
}

.auth-user .icon {
    display: flex;
    margin: 0 auto 24px;
    width: 56px;
    height: 56px;
    padding: 14px;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color-light);
    border: solid 1px var(--border-color);
    border-radius: 12px;
    box-shadow: 0px 0px 0px 1px rgba(16, 24, 40, 0.18) inset,
        0px -2px 0px 0px rgba(16, 24, 40, 0.05) inset,
        0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.auth-user .icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.auth-user .back-to-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;

    color: var(--text-600);

    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;

    width: fit-content;
    margin: 0 auto;
    margin-top: 32px;
}

.auth-user .back-to-login svg {
    width: 20px;
    height: 20px;
}

.auth-user .back-to-login path {
    stroke: var(--text-600);
}

.auth-user .email-sucess {
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
    flex-direction: column;
    margin-top: 42px;
}

.auth-user .email-sucess svg {
    width: 100%;
    min-height: 190px;
    max-width: 190px;
}

.auth-user .email-sucess path {
    stroke: var(--green-550);
}
.auth-user .error-message {
    width: 100%;
    background-color: var(--red-500);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 10px 16px;
}

.auth-user .error-message p {
    color: var(--text-color-white);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.auth-user .error-message svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.auth-user .error-message path {
    stroke: var(--text-color-white);
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideOutFade {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

.auth-user .email-sucess {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    animation: none;
}

.auth-user .email-sucess.slide-in {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: slideInFade 0.5s cubic-bezier(0.4, 1.4, 0.6, 1) forwards;
}

.auth-user .email-sucess.slide-out {
    opacity: 0;
    pointer-events: none;
    animation: slideOutFade 0.4s cubic-bezier(0.4, 1.4, 0.6, 1) forwards;
}

.auth-user form.slide-out {
    opacity: 0;
    pointer-events: none;
    animation: slideOutFade 0.4s cubic-bezier(0.4, 1.4, 0.6, 1) forwards;
}

/* Modal */
.auth-user .custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.auth-user .custom-modal.open {
    display: flex;
    opacity: 1;
}

.auth-user .custom-modal-dialog {
    max-width: 700px;
    width: 90vw;
    margin: auto;
    background: transparent;
    border-radius: 12px;
}

.auth-user .custom-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 0;
    overflow: hidden;
    animation: modalIn 0.3s;
}

@keyframes modalIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-user .custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 12px 24px;
    border-bottom: 1px solid #eee;
}
.auth-user .custom-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.auth-user .custom-modal-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.auth-user .custom-modal-close svg {
    width: 20px;
}
.auth-user .custom-modal-close:hover {
    color: #333;
}

.auth-user .custom-modal-body {
    padding: 24px;
    color: #222;
    font-size: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.auth-user .custom-modal p {
    text-align: justify;
}

@media (max-width: 576px) {
    .auth-user article {
        max-width: 100%;
        padding: 0 24px;
    }
}
