@import url('../components/modal.css');

.gallery-auth-modal {
    z-index: var(--z-index-modal, 1000);
}

.gallery-auth-modal.d-none {
    display: none !important;
}

.gallery-auth-modal__panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
}

.gallery-auth-modal__close {
    position: absolute;
    top: clamp(10px, 2vw, 20px);
    right: clamp(18px, 3vw, 32px);
    z-index: 2;
    display: none;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition:
        filter .18s ease,
        transform .18s ease;
}

.gallery-auth-modal__close svg {
    display: block;
}

.gallery-auth-modal__close:hover,
.gallery-auth-modal__close:focus-visible {
    filter: drop-shadow(0 0 10px rgba(1, 107, 255, .35));
    transform: translateY(-1px);
}

.gallery-auth-modal__close:focus-visible {
    outline: 2px solid rgba(234, 241, 255, .72);
    outline-offset: 3px;
}

.gallery-auth-modal__header {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.gallery-auth-modal__artist-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 30px -30px -60px;
    padding: var(--spacing-3xl);
    background: var(--color-primary);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    color: var(--color-secondary-alt);
    text-align: center;
    text-decoration: none;
}

.gallery-auth-modal__artist-cta:hover {
    background: var(--color-secondary-alt);
    color: var(--color-primary);
}

.gallery-auth-modal__artist-cta:hover > * {
    color: var(--color-primary) !important;
}

.gallery-auth-modal__subtitle a {
    color: var(--color-primary, #016BFF);
    text-decoration: none;
}

.gallery-auth-modal__subtitle a:hover,
.gallery-auth-modal__password-links a:hover {
    text-decoration: underline;
}

.gallery-auth-modal__panel,
.gallery-auth-modal .email-registration-form {
    text-align: left;
}

.gallery-auth-modal.is-step-transitioning .gallery-auth-modal__panel {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-auth-modal .divider-line {
    position: absolute;
    top: 50%;
    border: none;
    border-top: 1px solid var(--color-accent);
    margin: 0;
    opacity: 1;
}

.gallery-auth-modal .connection-keyword {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-black);
    padding: 0 var(--spacing-lg);
    color: var(--color-white);
}

.gallery-auth-modal .social-media-icon {
    display: flex;
    width: 19px;
    height: 19px;
    padding: 0 0.202px;
    justify-content: center;
    align-items: center;
}

.gallery-auth-modal .social-media-icon.linkedin-icon {
    width: 20px;
    height: 19px;
    background-image: url('../../assets/social/login/linkedin.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 50%;
}

.gallery-auth-modal .btn--linkedin:hover .social-media-icon.linkedin-icon {
    background-image: url('../../assets/social/login/linkedin - 2.svg');
}

.gallery-auth-modal .user-card {
    text-align: left;
}

.gallery-auth-modal .user-picture {
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-auth-modal .user-picture img {
    object-fit: cover;
}

.gallery-auth-modal__back {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.gallery-auth-modal [data-gallery-auth-modal-toggle-password],
.gallery-auth-modal [data-gallery-auth-modal-password-icon] {
    cursor: pointer;
}

body.gallery-auth-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .gallery-auth-modal {
        align-items: stretch;
        justify-content: stretch;
    }

    .gallery-auth-modal__close {
        display: grid;
        top: 10px;
        right: 16px;
    }

    .gallery-auth-modal__panel {
        width: 100%;
        min-height: 100vh;
        height: 100%;
        max-height: none;
        border-radius: 0 !important;
        padding-top: 70px;
        padding-bottom: 140px;
    }

    .gallery-auth-modal__artist-cta {
        bottom: 0;
        position: absolute;
        left: 0;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
}
