#authorization-pop-up {

}
#authorization-pop-up .pop-up {
    width: 520px;
}
#authorization-pop-up.register-state .pop-up {
    width: 360px;
}


#authorization-pop-up .wide-content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
#authorization-pop-up .wide-content-wrapper .content,
#authorization-pop-up .wide-content-wrapper .passcode-block {
    width: calc((100% - 33px) / 2);
}
#authorization-pop-up .wide-content-wrapper .vertical-line {
    width: 1px;
    min-height: 100%;
    border-radius: 16px;
    background: var(--color-border-popup);
}
#authorization-pop-up.register-state .pop-up .wide-content-wrapper .content {
    width: 100%;
}
#authorization-pop-up.register-state .pop-up .wide-content-wrapper .passcode-block,
#authorization-pop-up.register-state .pop-up .wide-content-wrapper .vertical-line {
    display: none;
}


#authorization-pop-up .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#authorization-pop-up .input-wrapper .label {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: var(--color-text-tertiary);
}
#authorization-pop-up .input-wrapper .reset-password {
    font-weight: 500;
    font-size: 10px;
    color: var(--color-text-primary);
    cursor: pointer;
    text-decoration: underline;
}
#authorization-pop-up .input-wrapper input {
    width: 100%;
    height: 39px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--color-button-secondary);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    color: var(--color-text-primary);
}
#authorization-pop-up .input-wrapper input:focus {
    border: 1px solid var(--color-border-popup);
}


#authorization-pop-up .pop-up .passcode-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
#authorization-pop-up .pop-up .passcode-block #link-code {
    width: 100%;
    height: 120px;
    background-color: var(--color-button-tertiary);
    border-radius: 8px;
    text-align: center;
    color: var(--color-text-primary);
    line-height: 120px;
    font-size: 40px;
    font-weight: 500;
}
#authorization-pop-up .pop-up .passcode-block p {
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
}
#authorization-pop-up .pop-up .passcode-block .expire-time {
    color: var(--color-text-tertiary);
}
#authorization-pop-up .pop-up .passcode-block .passcode-tip {
    color: var(--color-text-primary);
    margin-top: auto;
}
#authorization-pop-up .pop-up .passcode-block .passcode-tip .line-1 {
    font-weight: 400;
}
#authorization-pop-up .pop-up .passcode-block #btn-request-code {
    height: 40px;
    border-radius: 4px;
    background: var(--color-button-cta);;
    border: none;
    outline: none;
    color: var(--color-text-cta);
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    padding: 0 16px;
    text-wrap: nowrap;
    
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}
#authorization-pop-up .pop-up .passcode-block #btn-request-code.hidden { display: none }

#authorization-pop-up button {
    cursor: pointer;
    transition: 300ms;
}
#authorization-pop-up button:hover {
    opacity: 0.7;
}
#authorization-pop-up button.login,
#authorization-pop-up button.register {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: var(--color-button-accent);;
    border: none;
    outline: none;
    color: var(--color-text-button-accent);
    font-weight: 500;
    font-size: 12px;
}
#authorization-pop-up .line {
    width: 100%;
    height: 1px;
    background: var(--color-border-popup);
}
#authorization-pop-up .social-media-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
}
#authorization-pop-up .social-media-buttons-wrapper button {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    outline: none;
    max-width: 260px;
}
#authorization-pop-up.register-state .social-media-buttons-wrapper {
    flex-direction: column;
}
#authorization-pop-up.register-state .social-media-buttons-wrapper button {
    width: 100%;
}
#authorization-pop-up .tip {
    align-self: center;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 400;
    user-select: none;
}
#authorization-pop-up .tip .main-text {
    opacity: 0.75;
}
#authorization-pop-up .tip .go-to {
    cursor: pointer;
    text-decoration: underline;
}
#authorization-pop-up .password-confirmation-wrapper,
#authorization-pop-up button.register {
    display: none;
}
#authorization-pop-up.register-state .password-confirmation-wrapper { display: flex}
#authorization-pop-up.register-state button.register {display: block }
#authorization-pop-up.register-state .reset-password,
#authorization-pop-up.register-state button.login {
    display: none;
}





#account-pop-up .pop-up {
    width: 201px;
    top: 130px;
    left: unset;
    right: 38px;
    transform: unset;
    border-radius: 8px;
    padding: 12px;
    gap: 16px;
}
#account-pop-up .pop-up button {
    width: 100%;
    height: 31px;
    border-radius: 4px;
    color: var(--color-text-button-accent);
    font-size: 12px;
    font-weight: 500;
    outline: none;
    border: none;
    transition: 300ms;
    cursor: pointer;
}
#account-pop-up .pop-up button:hover {
    opacity: 0.7;
}

#account-pop-up .pop-up .name-control-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#account-pop-up .pop-up .name-control-block p {
    color: var(--color-text-tertiary);
    opacity: 0.5;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
#account-pop-up .pop-up .name-control-block p .current-user-name-text {
    color: var(--color-text-primary);
}
#account-pop-up .pop-up .name-control-block .display-name-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#account-pop-up .pop-up .name-control-block input {
    width: 100%;
    height: 23px;
    border-radius: 4px;
    background-color: var(--color-button-tertiary);
    border: none;
    color: var(--color-text-primary);
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
}
#account-pop-up .pop-up .name-control-block .change-name {
    background: var(--color-button-secondary);
}
#account-pop-up .pop-up .name-control-block .change-name:disabled {
    opacity: 0.3;
}

#account-pop-up .pop-up .line {
    width: 100%;
    height: 1px;
    background: var(--color-border-popup);
    border-radius: 16px;
}

#account-pop-up .pop-up button#btn-account-management {
    background: var(--color-button-accent);
    color: var(--color-text-button-accent)
}

#account-pop-up .pop-up button.complete-account {
    background: var(--color-button-accent);
    color: var(--color-text-button-accent);
}


#account-pop-up .pop-up .buttons-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#account-pop-up .pop-up .buttons-block .log-out {
    background: var(--color-button-primary);
    color: var(--color-text-button-accent)
}
#account-pop-up .pop-up .buttons-block .delete-account {
    background: var(--color-button-tertiary);
    color: var(--color-text-primary);
    display: none;
}

#account-pop-up .pop-up button.complete-account {
    display: none;
}
#account-pop-up.is-anonymous .pop-up button.complete-account {
    display: block;
}
#account-pop-up.is-anonymous .pop-up button.delete-account {
    display: none;
}
#account-pop-up.is-anonymous .pop-up .name-control-block .change-name{
    background: var(--color-button-primary);
    color: var(--color-text-primary)
}
#account-pop-up.is-anonymous .pop-up .buttons-block .log-out {
    background: var(--color-button-tertiary);
    color: var(--color-text-primary)
}





#delete-account-pop-up .pop-up {
    width: 201px;
    top: 50%;
    transform: translate(-50%, -50%);
}
#delete-account-pop-up .pop-up p {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-primary);
}
#delete-account-pop-up .pop-up .line {
    width: 100%;
    height: 1px;
    background: var(--color-border-popup);
    border-radius: 16px;
}
#delete-account-pop-up .pop-up .buttons-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#delete-account-pop-up .pop-up .buttons-block button {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    border: none;
    transition: 300ms;
    cursor: pointer;
}
#delete-account-pop-up .pop-up .buttons-block button:hover {
    opacity: 0.7;
}
#delete-account-pop-up .pop-up .buttons-block button.confirm-delete-account {
    background: var(--color-text-button-accent);
    color: var(--color-text-cta);
}
#delete-account-pop-up .pop-up .buttons-block button.cancel-pop-up {
    background: var(--color-button-tertiary);
    color: var(--color-text-primary);
}


#reset-password-pop-up .pop-up {
    width: 360px;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    gap: 16px;
}
#reset-password-pop-up .pop-up h2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}
#reset-password-pop-up .pop-up p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-align: center;
}
#reset-password-pop-up .pop-up .line {
    width: 100%;
    height: 1px;
    background: var(--color-border-popup);
    border-radius: 16px;
}
#reset-password-pop-up .pop-up form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#reset-password-pop-up .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
#reset-password-pop-up  .input-wrapper .label {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: var(--color-text-tertiary);
    text-align: left;
}
#reset-password-pop-up  .input-wrapper input {
    width: 100%;
    height: 39px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--color-button-secondary);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    color: #fff;
}
#reset-password-pop-up  .input-wrapper input:focus {
    border: 1px solid var(--color-border-popup);
}
#reset-password-pop-up button {
    width: 100%;
    height: 40px;
    background: var(--color-button-accent);
    color: var(--color-text-button-accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    border: none;
    transition: 300ms;
    cursor: pointer;
}
#reset-password-pop-up button:hover {
    opacity: 0.7;
}
#reset-password-pop-up button:disabled {
    opacity: 0.3;
}
#reset-password-pop-up .reset-request-message {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-top: -16px;
}
#reset-password-pop-up .reset-request-message .alert {
    margin-top: 16px;
}




#account-info-message-pop-up {
    /*pointer-events: none;*/
    justify-content: center;
    transition: 1s linear;
    opacity: 1;
    z-index: 20;
}

#account-info-message-pop-up.fade-out {
    opacity: 0;
}
#account-info-message-pop-up .pop-up {
    top: 50%;
    transform: translate(-50%, -50%);
    width: unset;
    max-width: 400px;
    min-width: 200px;
}
#account-info-message-pop-up h2 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    cursor: pointer;
}




#account-set-new-password .pop-up {
    width: 360px;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    gap: 16px;
}
#account-set-new-password .pop-up form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#account-set-new-password .pop-up h2 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: center;
}
#account-set-new-password .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
#account-set-new-password  .input-wrapper .label {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: var(--color-text-tertiary);
    text-align: left;
}
#account-set-new-password  .input-wrapper input {
    width: 100%;
    height: 39px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--color-button-secondary);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    color: #fff;
}
#account-set-new-password  .input-wrapper input:focus {
    border: 1px solid var(--color-border-popup);
}
#account-set-new-password button {
    width: 100%;
    height: 40px;
    background: var(--color-button-accent);
    color: var(--color-text-button-accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    border: none;
    transition: 300ms;
    cursor: pointer;
}
#account-set-new-password button:hover {
    opacity: 0.7;
}
#account-set-new-password .reset-request-message {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-top: -16px;
}
#account-set-new-password .reset-request-message .alert {
    margin-top: 16px;
}

#complete-account-pop-up {
    z-index: 20;
}
#complete-account-pop-up .pop-up {
    width: 360px;
}
#complete-account-pop-up .tip {
    align-self: center;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 400;
    user-select: none;
    text-align: center;
}
#complete-account-pop-up .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#complete-account-pop-up .input-wrapper .label {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: var(--color-text-tertiary);
}
#complete-account-pop-up .input-wrapper input {
    width: 100%;
    height: 39px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--color-button-secondary);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    color: var(--color-text-primary);
}
#complete-account-pop-up .input-wrapper input:focus {
    border: 1px solid var(--color-border-popup);
}

#complete-account-pop-up button {
    cursor: pointer;
    transition: 300ms;
}
#complete-account-pop-up button:hover {
    opacity: 0.7;
}
#complete-account-pop-up button.complete-account {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: var(--color-button-accent);;
    border: none;
    outline: none;
    color: var(--color-text-button-accent);
    font-weight: 500;
    font-size: 12px;
}
#complete-account-pop-up .line {
    width: 100%;
    height: 1px;
    background: var(--color-border-popup);
}
#complete-account-pop-up button.google-complete {
    width: 100%;
    height: 40px;
    background-color: var(--color-button-cta);
    color: var(--color-text-cta);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    outline: none;
}
